[Zope] sorting objects in python

Dieter Maurer dieter@handshake.de
Thu, 21 Nov 2002 19:10:28 +0100


David Bear writes:
 > I have a script that uses getId to get all structured text documents in a folder.  Each of those documents has an added property called 'priority' which is a string type.  The value of 'priority' is is used to impose a sort order on the documents.  However, I can't figure out how to sort the objects using the the sort method of lists.  Any recommendations?
The "sort" function in the "sequence" module, documented
in Zope Online Help system...


Dieter