[Zope] Sorting in Python Script

Peter Bengtsson peter@grenna.net
Thu, 5 Apr 2001 14:45:00 +0100


In DTML I do this:

<dtml-in "folder.objectValues('Meta Type')">

And in Python Script:

objlist = context.folder.objectValues('Meta Type')


BUT!
Now this I only know how to do in DTML

In DTML I do this:

<dtml-in "folder.objectValues('Meta Type') sort=bobobase_modification_time>

How do I do this in Python Scripts??

I have tried
objlist.sort('bobobase_modification_time')
and
objlist.sort(bobobase_modification_time)

but no success!


Can somebody explain how to get all the luxury of DTML-IN in Python
Scripts??

<BR> Peter