[Zope] SQL list sorting

Andreas Jung andreas at andreas-jung.com
Wed Jan 21 01:18:36 EST 2004



--On Mittwoch, 21. Januar 2004 16:04 Uhr +1100 Tim Zegir 
<trzegir at ncable.net.au> wrote:


>
> what i want to do is sort this list by a field
> eg. mylist.sort('fieldname')
> but obviously the sort function dose not work like that

The obvisious reason why it does not work is that you have not
consulted  neither the Python documentation on list.sort()
nor Zope sequence.sort() method. Both are documented
and explained several times on this list....read or google.

-aj





More information about the Zope mailing list