<![CDATA[ Ditto &orderBy, work wrong - My Forums]]> https://forums.modx.com/thread/?thread=102916 <![CDATA[Ditto &orderBy, work wrong]]> https://forums.modx.com/thread/102916/ditto-orderby-work-wrong#dis-post-554220
I try to list documents as news on my client site, but i have a problem with &orderBy option.
Look on my code below

[!Ditto? &parents=`6` &hideFolders='1' &depth='2' &display=`2` &tpl=`news` &dateSource=`pub_date` &dateFormat=`<span>%d-%m</span><span class="year">%Y</span>` &orderBy=`createdon DESC, pub_date DESC` &showInMenuOnly=`1`!]


I have some document with "Published Date" insert by myself manualy, instead new documents i create have "pub_date" attribute blank and list after this one with "Published Date" who has value.
Second option createdOn list newest documents as first and skips checking pub_date value.

Please help, and sorry for my english wink]]>
yanqpl Sep 29, 2017, 12:39 PM https://forums.modx.com/thread/102916/ditto-orderby-work-wrong#dis-post-554220