8 Jan
2004
8 Jan
'04
3:56 p.m.
Dear all, I have python script that does for i in self.objectItems('Folder') I want to sort by value of i[0] before "i" is taken to FOR. So it is possible to do something like for i in self.objectItems('Folder').sort(i[0]) ??? I want to sort by id value, which is in thos case value of i[0] Under Zope DTML it is very easy: <dtml-in "objectItems('Folder')" sort=id> But under python? Many thanks, J. Lukesh