title: Order SFTP files by date
body: <p>I am connecting to an sftp folder with a list of files. I need to order these by date and extract the latest two.</p>
  
  <pre><code>filepath= "/test/sftp/files/"
  localpath= "C:/myfiles/"
  
  os.get(filepath, localpath)
  </code></pre>
  
  <p>I can extract all the files by using the os.get but i tried os.listdir but this does not order by date which i need. I looked in the os library but cant find something to order by date.</p>