In a dtml-in, how do I explicitly sort ascendingly or descendingly?
Ken Kinder wrote:
In a dtml-in, how do I explicitly sort ascendingly or descendingly?
sorting is ascendingly by default (taken that you put a sort in the dtml-tag, like <dtml-in sort=id>) turning the sort to descending is done by putting in 'reverse', like so <dtml-in sort=id reverse> Rik
just add reverse to your dtml-in tag cb
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ken Kinder Sent: zondag 26 maart 2000 8:43 To: zope@zope.org Subject: [Zope] Sorting descending/ascending
In a dtml-in, how do I explicitly sort ascendingly or descendingly?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 11:43 PM 3/25/00 -0700, you wrote:
In a dtml-in, how do I explicitly sort ascendingly or descendingly?
It is always ascending unless you specify "reverse" as an attribute with no argument in DTML-IN <dtml-in "objectValues()" reverse sort="id"> ... </dtml-in> Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
participants (4)
-
Cornelis J. de Brabander -
Ken Kinder -
Rik Hoekstra -
Stephan Richter