Sorting a list

Boris Ozegovic silovana.vjeverica at com.gmail
Thu Feb 1 14:43:47 EST 2007


John Salerno wrote:

> Hi everyone. If I have a list of tuples, and each tuple is in the form:
> 
> (year, text) as in ('1995', 'This is a citation.')
> 
> How can I sort the list so that they are in chronological order

L.sort()

-- 
"kad imaš 7 godina glup si ko kurac, sve je predobro: autići i bageri u
kvartu.. to je život"
	Drito Konj



More information about the Python-list mailing list