I use the following command to read the names of all files in a directory in python:
import glob
list_of_files = glob.glob(".../*.txt")
However the elements of the list "list_of_files" seem to have no particular order. at least none that I can tell. i-e were they read in alphabetical order? or in order of last modified time stamp?