title: Read files sequentially in order
body: <p>I have a number of files in a folder with names following the convention:</p>
  
  <pre><code>0.1.txt, 0.15.txt, 0.2.txt, 0.25.txt, 0.3.txt, ...
  </code></pre>
  
  <p>I need to read them one by one and manipulate the data inside them. Currently I open each file with the command:</p>
  
  <pre><code>import os
  # This is the path where all the files are stored.
  folder path = '/home/user/some_folder/'
  # Open one of the files,
  for data_file in os.listdir(folder_path):
      ...
  </code></pre>
  
  <p>Unfortunately this reads the files in no particular order (not sure how it picks them) and I need to read them starting with the one having the minimum number as a filename, then the one with the immediate larger number and so on until the last one.</p>