I’ve got the same problem but the ampersand is there...
I’ve created a bunch of docs (0 menu index for each) with the date published at the beginning of the title, using this format: 01.01.2010. ("02.02.2010 • Here is an article" )
I’d like them to be displayed newest first, but the one doc from 2009 is sorted according to the month (12.12.2009), when I’d like it at the bottom since it’s the oldest.
Here is Ditto call: [[Ditto? &depth=`2` &parents=`146` &hideFolders=`1` &tpl=`accordion` &paginate=`0` &orderBy=`longtitle DESC`]]
All docs are titled (longtitle) with date first, in month.day.year format (ex: 07.07.2010)
Thanks very much to wiser eyes than mine for a solution!
Thank you! That makes good sense, of course.
However, having followed that suggestion, I am still coming up with one date out of order. Sorting according to title DESC, all goes fine until 2010.07.07, which ends up at the bottom, following 2009.12.12, which follows 2010.02.15, which follows 2010.03.15
display =
03.15.2010
02.15.2010
12.12.2009
07.07.2010
I’ve checked for spaces, and there are none. Any suggestions?
See
http://www.pogwatch.com/ditto/ditto-sort.html
Ditto wants a UNIX timestamp. Why not use &orderBy=`pub_date ASC,longtitle ASC`
http://ditto.modxcms.com seems to have issues at the moment.
Hey! I have done the same thing, you had a good intention!! Rock on!