title: Python filtered and date sorted list
body: <p>How would I have to create a date modified sorted list with Python of all files in /var/log starting with yum.log</p>
  
  <pre><code>ls -la /var/log/yum.log*                                                                                                      [17-01-04 11:36:41]
  -rw-------. 1 root root     0 Jan  1 03:45 /var/log/yum.log
  -rw-------. 1 root root 16062 Jan 13  2016 /var/log/yum.log-20160113
  -rw-------. 1 root root 36020 Dec 22 16:28 /var/log/yum.log-20170101
  </code></pre>
  
  <p>This code creates the list, but it is sorted by name.</p>
  
  <pre><code>logdir = '/var/log'
  yum_logs = sorted([f for f in os.listdir(logdir) if f.startswith('yum.log')])
  </code></pre>
  
  <p>How can I sort this list by date modified so the newest yum logfile comes first?</p>