Hi,
I have been reading some post but I still don’t manage to use ditto to sort a list of events and then i decided to open this new post.
Situation:
I have a list of events that i would like to sort in ascending chronological order.
I created a tv called "sort_live_date" ( this tv is a date).
And i have the following ditto call:
[[Ditto? &id=`live` &parents=`3` &start=`0` &tpl=`tpl_live_supercurt` &display=`15` &noResults=`No hay documentos para mostrar ...` &paginate=`1` &paginateAlwaysShowLinks=`1`
&sortBy=`tvsort_live_date` &sortDir=`ASC` &dateFormat=`%d-%m-%Y %T`]]
The result is a list of events but not in the order that they should be.
I would really appreciate any help.
Thanks.
Hi,
which version of Ditto are you using ?
If it’s >= 2.0 the tv don’t have any more to be prefixed.
&sortBy=`sort_live_date`
:-)