sequence.sort: how can I sort strings?
25 Mar
2002
25 Mar
'02
12:06 a.m.
Hi! How can I sort a sequence of STRINGS using sequence.sort? I don't know what to use as a "key"... (I tried self, str, value, '', _.None, ....... :-)) Or in other words: What's the attribute of a string that returns the string itself? thanks, Danny
25 Mar
25 Mar
9:24 a.m.
New subject: [Zope] sequence.sort: how can I sort strings?
On Mon, Mar 25, 2002 at 12:06:27PM +1200, Danny Adair wrote:
How can I sort a sequence of STRINGS using sequence.sort? I don't know what to use as a "key"...
(I tried self, str, value, '', _.None, ....... :-))
Or in other words: What's the attribute of a string that returns the string itself?
There is no. Why not use just alist.sort()? Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
8778
Age (days ago)
8778
Last active (days ago)
1 comments
2 participants
participants (2)
-
Danny Adair -
Oleg Broytmann