title: Glob search files in date order?
body: <p>I have this line of code in my python script. It searches all the files in in a particular directory for * cycle *.log. </p>
  
  <pre><code>for searchedfile in glob.glob("*cycle*.log"):
  </code></pre>
  
  <p>This works perfectly, however when I run my script to a network location it does not search them in order and instead searches randomly. </p>
  
  <p>Is there a way to force the code to search by date order?</p>
  
  <p>This question has been asked for php but I am not sure of the differences.</p>
  
  <p>Thanks</p>