[Zope] Sorting a list

RC Compaan roche@up-front.co.za
Sat, 8 Jul 2000 13:19:15 +0200


I have a list:
mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)]

I want to rebuild the list sorted from high to low on the sequence-item.

When i call  <dtml-in mylist sort=sequence-item reverse> the list gets
sorted on the sequence-key not the sequence-item.  As I understand the
alphabetical characters are the sequence-keys and the float values are the
sequence-items.

Where do misunderstand?

Roché