We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27302
    • 154 Posts
    I’ve created a set of documents that are weblinks and I am using a Ditto call to display them. Strangely though I cannot get Ditto to display them in the order I want. It seems to ignore any settings that I give the orderBy function. This is my call:
    [!Ditto? &parents=`1717` &id=`sponsors` orderBy=`createdon ASC`
    &depth=`4` &display=`all` &tpl=`sponsorTpl` &noResults=`empty` &display=`all` &summarize=`3` &seeThruUnpub=`1` &filter=`activityType,[*activityType*],1` !]


    Whether I choose ASC or DESC it doesn’t change the order. I’ve tried pretty much everything I can think of. My only conclusion is that there might be a bug somewhere that prevents weblink resources from being sorted.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
       &id=`sponsors` orderBy=`createdon ASC`
      

      Hint: missing & wink
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 27302
        • 154 Posts
        Hehe! I knew my mind was going but... Thanks! Doh! smiley