sorting a list of tupples

David Bear david.bear at asu.edu
Thu Oct 30 19:45:57 EST 2003


I have a list of tupples.  Each tupple has 3 items.  The first item is
an integer.  I'd like to sort the list(of tupples), based on the first
element of the tupple.  I thought about stringifying the tupples, then sorting
those, but thought there must be a better way.  any idea's?

--David Bear
phone: 	480-965-8257
fax: 	480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"




More information about the Python-list mailing list