Sorting Lists

Colin Meeks colin at meeks.ca
Thu Jul 26 08:42:52 EDT 2001


Thanks all, that's given me all the info I need.

Colin

"Colin Meeks" <colin at meeks.ca> wrote in message
news:lSh77.64029$2V.13507417 at news3.rdc1.on.home.com...
> 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
>
>


---
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