Sorting Lists
Colin Meeks
colin at meeks.ca
Tue Jul 24 13:02:09 EDT 2001
I have a list that comprises of First Name, Surname, Age
The list looks something like
[["Mickey","Mouse","50"],["Stan","Mantz","3"],["Junior","Wilst","40"],["Kim"
,"Bean","15"]]
How can I sort the list to rearrange it by either First Name, Surname, Age
I believe I'd have to use a cmpfunc in the sort, but not too sure how to
achieve the above.
Thanks
Colin
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 18/07/2001
More information about the Python-list
mailing list