Sorting a list
Boris Ozegovic
silovana.vjeverica at com.gmail
Thu Feb 1 14:43:47 EST 2007
More information about the Python-list mailing list
Thu Feb 1 14:43:47 EST 2007
- Previous message (by thread): Sorting a list
- Next message (by thread): Sorting a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Sorting a list
- Next message (by thread): Sorting a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list