Sorting a list

John Salerno johnjsal at NOSPAMgmail.com
Thu Feb 1 14:52:03 EST 2007


Bruno Desthuilliers wrote:

> You don't tell how these lines are formatted, but it's possible that you 
> don't even need a regexp here. But wrt/ sorting, the list of tuples with 
> the sort key as first element is one of the best solutions.

Ah, so simply using sort() will default to the first element of each tuple?

The citations are like this:

lastname, firstname. (year). title. other stuff.



More information about the Python-list mailing list