title: Sorting Lists By DateTime in Python
body: <p>just a rather quick question to ask as I have been looking everywhere but haven't seen something that has worked for me I suppose. Suppose I have a list of tuples where:</p>
  
  <pre><code>data = (a, b, DateTime, d)
  </code></pre>
  
  <p>I wish to sort the list by dateTime in descending order where the most recent date/time is first. In this case, DateTime is the third element in the list, and I don't seem why my program doesn't sort when I try to sort. Any suggestions on how to sort the hypothetical example above by datetime? </p>