title: Sorting dates with python
body: <p>I have a list of strings like below.</p>
  
  <pre><code>&gt;&gt;&gt; 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"]
  </code></pre>
  
  <p>I want to sort these as they are dates.</p>
  
  <pre><code>&gt;&gt;&gt; mylist.sort()
  </code></pre>
  
  <p>This seems to work as I would like but will this always work with any date in this format?</p>
  
  <pre><code>&gt;&gt;&gt; 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']
  </code></pre>