[Zope] problems sorting list

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 28 Sep 2001 13:24:36 +0400


On Fri, Sep 28, 2001 at 11:16:27AM +0200, Sebastian Kugler wrote:
> > > I have the following problem with it, i could not yet figure out how to
> sort
> > > the items by bobobas modification time
> >
> >    <dtml-in documents sort="bobobase_modification_time"> works for me.
> 
> I am doing this in a python script, sorting in dtml has not been a problem.

from DTML import SortEx
return SortEx(documents, (("bobobase_modification_time",),))

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.