Case-Insensitive Sorting of Multi-Dimensional Lists

Simon Brunning simon at brunningonline.net
Fri Jun 8 16:27:35 EDT 2007


On 6/8/07, Joe <joe at incomps.com> wrote:
> Now, I would like to be able to specify which index to sort by.  I am not
> able to pass in external variables like:
>
> List.sort(key=lambda el: el[indexNumber].lower())

Why ever not?

-- 
Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues



More information about the Python-list mailing list