We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    my ditto call seem to be sorting pretty randomly, i just want the standard sort method, with the newest post first. here is my code:

    [!Ditto? &startID=`7` &dateFormat=`%d %b, %Y` &start=`1` &summarize=`2` &removeChunk=`FormBlogComments` &tpl=`main_blog` &paginate=`1` &paginateAlwaysShowLinks=`1` &trucAt=`<!-- splitter -->` &id=`news`!]

    this outputs a seemly random sort order. I am using RC2 and the latest beat of ditto.

    any ideas?
      • 10357
      • 573 Posts
      sigh, i guess its the old mysql sort bug :-(

      http://modxcms.com/forums/index.php/topic,9440.0.html


      FIXED: added &sortDir=`DESC` &sortBy=`publishedon` and it now ouputs correctly, go figure.