[Zope-dev] Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: 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

Re: [Zope] Sorting a list

2000-07-10 Thread Dieter Maurer
RC Compaan writes: 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

[Zope] Sorting a list

2000-07-08 Thread RC Compaan
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

[Zope] Sorting a list descending using dtml-in

2000-07-04 Thread Pieter Claerhout
Hello, if I'm iterating over a list using the dtml-in tag, is it then possible to sort the items descending? Pieter Pieter Claerhout Application Support - CreoScitex Europe ___ Zope maillist - [EMAIL PROTECTED]

RE: [Zope] Sorting a list descending using dtml-in

2000-07-04 Thread Pieter Claerhout
Seems to work fine in Zope 2.1.6... Pieter -Original Message- From: Jerome Alet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 04, 2000 3:48 PM To: Pieter Claerhout Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] Sorting a list descending using dtml-in On Tue, 4 Jul 2000, Pieter