Bruno Desthuilliers wrote:
> John Salerno a écrit :
>> 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 based 
>> on the year?
> 
> Calling sort() on the list should just work.

Amazing, it was that easy. :)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to