[Zope] sorting a catalog - order
Chris McDonough
chrism@zope.com
Thu, 20 Sep 2001 14:27:52 -0400
Note that this is a *killer* speed-wise, very slow. Better to index on
something that is not a datetime object, maybe something like
bbb_mod_timetime, e.g.:
def bbb_mod_timetime(self):
return self.bobobase_modification_time.timeTime()
> That would be
>
> <dtml-in Catalog sort_by=bobobase_modification_time sort_order=reverse>
> ...
> </dtml-in>
>
> Jan@Mountainbikehq.de
> http://www.MountainbikeHQ.de - Your home for DH, DS and CC Mountainbiking
>
>
> _______________________________________________
> 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 )
>