28 Sep
2001
28 Sep
'01
1:41 p.m.
On Fri, Sep 28, 2001 at 03:33:28PM +0200, Sebastian KŠgler wrote:
I can not imagine that this can not be done with sort()
Of course it can be done.
#list.sort(lambda a, b:cmp(a.bobobase_modification_time,b.bobobase_modification_time))
bobobase_modification_time is a function - call it: list.sort(lambda a, b: \ cmp(a.bobobase_modification_time(), b.bobobase_modification_time())) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.