title: Sorting a list of tuples by date in format dd month name yyyy
body: <p>I am trying to sort a list of tuples by their date (newest to oldest).</p>
  
  <p>My list is:</p>
  
  <pre><code>my_list = [("234","linkA" ,"FileA" , "23 March 2017"),
   ("541", "linkB", "FileB", "12 October 2019 ),
   ("9482", "linkC", "FIleC","24 February 2018")]
  </code></pre>
  
  <p>The output that I want is:</p>
  
  <pre><code>my_ordered_list = [("541", "linkB", "FileB", "12 October 2019 ),
   ("9482", "linkC, "FIleC","24 February 2018"),
   ("234","linkA" ,"FileA" , "23 March 2017")]
  </code></pre>
  
  <p>Tried different solutions following the answers for similar questions.</p>
  
  <p>My solution is:</p>
  
  <pre><code>def newest_results(my_array):
  my_array.sort(key=operator.itemgetter(1))
      sorted_by_oldest_date = my_array.sort(key=lambda L: datetime.strptime(L[3], '%d %B %Y'))
      return sorted_by_oldest_date
  </code></pre>
  
  <p>But it's not ordering the tuples by date. Instead, I get a <code>None</code> object instead of an ordered list</p>