[Tutor] I'd like to sort (symbol, address) set by address [

Sean 'Shaleh' Perry shalehperry@attbi.com
Mon, 15 Jul 2002 16:52:20 -0700 (PDT)


> 
> 
> Actually, this case is also pretty nice, since cmp() works on almost all
> the basic Python types, including tuples!
> 
>###
> def compare_by_second_then_lowered_third(a, b):
>     return cmp( (a[1], a[2].lower()),
>                 (b[1], b[2].lower()) )
>###
> 
> *grin*
> 

now that is a wicked pisser!  Thanks Danny.