I have a list of strings like below.
>>> mylist = ["2013-09-07T11:23:43", "2013-09-05T15:14:12", "2013-10-13T22:06:22", "2013-11-16T23:01:34", "2013-12-22T23:11:54"]
I want to sort these as they are dates.
>>> mylist.sort()
This seems to work as I would like but will this always work with any date in this format?
>>> mylist
['2013-09-05T15:14:12', '2013-09-07T11:23:43', '2013-10-13T22:06:22', '2013-11-16T23:01:34', '2013-12-22T23:11:54']