[Zope] Sorting of objectValues within python script

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Tue, 2 Oct 2001 17:43:02 +0400


On Tue, Oct 02, 2001 at 03:36:06PM +0200, olpa@sybcom.de wrote:
> I have a list of ZODB objects, collected by using objectValues.
> 
> How can I sort this list by the id? is this SortEx? how can I access
> SortEx? from within python script?

   Something like this:

from DTML import SortEx # I am not sure if it is allowed
return SortEx(mysequence, ((id,),))

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