title: How to sort a list by datetime in python?
body: <p>I am writing a .py file to sort lists by time which contain the following information</p>
  
  <blockquote>
    <p>date, time, emp_id, action_performed </p>
  </blockquote>
  
  <p>There is a question asked about this on stackoverflow but I couldn't exactly follow(I am new to python)</p>
  
  <p>I also checked out the sort function and the datetime library but couldnt get it to work.</p>
  
  <pre class="lang-py prettyprint-override"><code>list = 
  [
  ('2017/09/10 13:19:38', 'employee_id', 'enrolled'),
  ('2017/09/10 12:15:21', 'employee_id', 'deleted'),
  ('2017/09/10 21:19:34', 'employee_id', 'enrolled'),
  ('2017/09/10 22:42:50', 'employee_id', 'deleted'),
  ('2017/09/10 16:53:03', 'employee_id', 'enrolled')
  ]
  </code></pre>
  
  <p>I just want to know which action was performed first.
  Can someone help me out? </p>