Skip to content
jimjeffers edited this page Sep 13, 2010 · 6 revisions

To turn this feature on add the class “sorted-commentary” to the comment list container in your HTML.

This:


   <ol id="comments" class="commentlist">

Becomes:


   <ol id="comments" class="commentlist sorted-commentary">

What it Does?

If you enable sorting than any ‘@responses’ will be lined up after their target comment. The script does not nest comments instead it just appends the comment after it’s target and applies the class ‘response’ to the comment. What this means is that the comments are merely resorted and denoted. Should the author choose to modify the appearance of the denoted comments they may. This is demonstrated in the included demo providing the illusion of a threaded discussion.