ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

My comments are appearing in the wrong order

January 07, 2011 9:38pm

Subscribe [7]
  • #1 / Jan 07, 2011 9:38pm

    brebre

    75 posts

    My comments are appearing in the wrong order… I want the latest at the top… currently it appears at the bottom. If I reverse sort=“asc|desc” there is no difference.

    Any ideas where I am going wrong?

    {exp:comment:entries orderby="most_recent_comment" sort="asc|desc"}
    ...
    {/exp:comment:entries}

    thank Lance

  • #2 / Jan 08, 2011 12:07am

    Jeremy Bise

    77 posts

    I think it should be orderby=“date” sort=“asc”.

  • #3 / Jan 08, 2011 5:09am

    brebre

    75 posts

    normally yeh, but not working on my comments.

  • #4 / Jan 08, 2011 7:23am

    brebre

    75 posts

    {exp:comment:entries sort="desc" orderby="date"}

    is actually the correct ‘order’ that works… this is weird.

    PLUS there is a bug in the comments… it seems with a count over 18 things go screwy.

    http://ellislab.com/forums/newreply/176862/

  • #5 / Jan 08, 2011 1:23pm

    Jeremy Bise

    77 posts

    That is weird.

  • #6 / Jan 10, 2011 2:47am

    John Henry Donovan

    12339 posts

    brebre,
    the bug you refer to has been fixed for next release. Is everything working ok for you now?

    is actually the correct ‘order’ that works… this is weird.

    If your comments were ascending then it would start with the first comment. Descending starts with the latest. It works the same across the board in EE

  • #7 / Jan 14, 2011 7:41pm

    24here

    69 posts

    I also have this problem, comments not sorting correctly, even I use
    it seems to be working correct

  • #8 / Jan 15, 2011 3:39pm

    Greg Salt

    3988 posts

    Hi 24here,

    Thank you for the update.

    @brebre, how are you getting on?

    Cheers

    Greg

  • #9 / Feb 16, 2011 5:48pm

    markphillip

    105 posts

    Which is the bug that has been fixed ... the sort order problem or the ‘over 18 things get screwy’ problem?

    I’m having the sort order problem right now ... regardless of the whether I sort ASC or DESC the generated template sorts in ASC.

    Is there a workaround for this?

  • #10 / Feb 17, 2011 8:35am

    Sue Crocker

    26054 posts

    Hi, Mark. both have been fixed in EE2.1.4 beta.

    {exp:comment:entries limit="20" sort="desc" orderby="title" channel="news" dynamic="off"}
        <li>
            <em>{author}</em> on <a href="http://{url_title_path="><strong>{title}</strong> - {comment_id} - {count}</a>
        </li>
    {/exp:comment:entries}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases