[Tutor] sort() once more...
Annika Scheffler
annika.scheffler@gmx.net
Wed, 2 Oct 2002 19:04:41 +0200 (MEST)
Hi,
thanks for everyone for your help!
I'm afraid I have another question...:
For example, I have a list like this: l = "What Do we have here".split().
If I use the sort() method on this list I get:
['Do', 'What', 'have', 'here', 'we']
What I want as a result is this, though:
['Do', 'have', 'here', 'we', 'What']
In other words, I'd like the sort() method to ignore the first letter of
each word being lower or uppercase. How can I do that?
Thanks a lot,
Annika
--
Ravens fly in flights, but the egale flies
alone.
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Günstige DSL- & Modem/ISDN-Tarife!