[Zope] Another newbie question : sorting opposite way ?
Thomas Weiner
weiner@tu-harburg.de
Tue, 14 Sep 1999 10:35:54 +0200
Geir B Hansen schrieb:
>
> I have a DTML document where i sort a list of documents according to the
> bobobase_modification_time property. Problem is, they're listed with the
> oldest document first. Is there a quick way to tell the <!--#in> tag to
> sort the opposite way, or do i have to make an expression just to
> calculate a new number to sort by ?
>
> The sorting looks like this at the present :
>
> <!--#in "objectValues(_['sequence-item'])"
> sort=bobobase_modification_time-->
There is a quick way, just use the 'reverse' attribute:
<!--#in "objectValues(_['sequence-item'])"
sort=bobobase_modification_time reverse-->
regards,
Thomas
--
fon: ++49 (0)40 42878 3781
fax: ++49 (0)40 42878 2728