How to sort the below array of dates on python 2.4
timestamps = [\'2011-06-2\', \'2011-08-05\', \'2011-02-04\', \'2010-1-14\', \'2010-12-13\', \'2010-1-12\'
If you sort them into the same format you can just call timestamps.sort()
timestamps.sort()