[Zope] dtml-in and tuples
Chris Withers
chrisw@nipltd.com
Tue, 15 Aug 2000 14:09:57 +0100
Shane Hathaway wrote:
> Looking at the code, it appears that if you pass a list of two-element
> tuples, dtml-in will sort by the first element of each pair and render
> the second element.
Unluckilly, that's exactly what I was passing it. But not the result I
was looking for :S
> If, on the other hand, you pass a list of lists, it
> won't try to sort that way.
Yeah, using just a list of length-two lists did the job :-)
Can I be brave enough to ask why it does this and where it's documented
(other than the source ;-)
cheers,
Chris