This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Comment Sorter


How many times you been to a blog where Trackbacks/Pingbacks were interspersed with the regular comments? Or perhaps you wanted the comments to be displayed with the latest one on the top instead of the bottom. With Comment Sorter, readers can disable Trackbacks and also decide what order they would like to read the comments.

As an admin, you also have the ability to assign global options to your comments that you can’t normally do in the WordPress admin panel. For example, if you want Trackbacks to not show on all of your posts, you can do that without modifying any template files. You can also change the default sort order of the comments.

For bug reports, feature requests, and support requests, please contact me.

Demonstration Videos

For videos and screenshots of the plugin in action, please visit the Comment Sorter Media Page.

User Features

  • Prevent Trackbacks/Pingbacks from showing.
  • Sort comments by Date Ascending.
  • Sort comments by Date Descending.
  • Sort comments by Name Ascending.
  • Sort comments by Name Descending.
  • The ability to remember options.

Admin Features

  • Ability to change default sort order of comments without modifying template files.
  • Ability to disable Trackbacks/Pingbacks for all posts without modifying template files (you will still receive Trackbacks/Pingbacks, they just won’t show on a post).
  • Can disable the auto-include of the sorter interface (useful if you only want this to be an admin tool).

The plugin is available in the following languages:

  • English

If you are interested in providing a translation, please contact me.


  • Comment section with Trackbacks Showing
  • The Comment Sorter Interface
  • Selecting Comment Sorter Options
  • Comment section with Trackbacks Filtered Out
  • Comment Sorter Admin Panel


  • Download the plugin.
  • Extract the plugin from the ZIP file and place the “comment-sorter” directory into your WordPress plugins directory.
  • Go to the Plugins page in your WordPress Admin Panel and “Activate” the Comment Sorter plugin.

The plugin will automatically insert the interface above the first comment section it finds. It searches for the class “commentlist“, which is the default class for a comments section.

If you want to interface to be inserted manually, go to the Comment Sorter options (under “Options” in the Admin Panel) and select “Yes” for Disable Auto Include. From there you’ll want to add this code where you want the plugin to show up:

<?php if (function_exists("raproject_getCommentSorter")) { raproject_getCommentSorter(); } ?>


The Comment Sorter interface isn’t showing or isn’t doing anything. What’s wrong?

Make sure that your comment list has the class “commentlist”. This is the default class for the comments section and some theme authors do not use this.

If the interface fails to show up, you can try inserting it manually using the template tag. Go into the admin panel and set “Disable Auto-Include” to “Yes” and insert the following template tag above your comments section:

<?php if (function_exists("raproject_getCommentSorter")) { raproject_getCommentSorter(); } ?>

Why give readers the option to sort?

Because readers have different preferences on how they want to read comments. Some prefer to read comments without Trackbacks/Pingbacks interspersed. Some prefer to read the latest comment at the top of the comment’s section instead of the bottom.

Why would admin want to disable Trackbacks/Pingbacks?

Not all readers like having Trackbacks/Pingbacks shown with the regular comments.

Does this plugin separate Comments and Trackbacks?

Unfortunately no. There’s no way (from what I’ve seen) to separate Comments and Trackbacks without modifying template files.

This plugin causes other comment plugins to not work. What’s wrong?

When a reader uses the sort options, any plugins that rely on events to modify the comments section will not work. There is not an elegant solution to this problem unfortunately.

If the reader chooses to have the plugin remember their settings, the comment section will be made re-compatible with other plugins after a refresh.

What browsers is this plugin compatible with?

This plugin has been tested successfully on Firefox 2.0, Safari 3.0, IE 6 & 7. This plugin does not work on IE 5.5.

Contributors & Developers

“Comment Sorter” is open source software. The following people have contributed to this plugin.


Translate “Comment Sorter” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.