Explicitly sort contents of directory

os.listdir depends on the ordering of the filesystem,
and not all filesystems list the directory contents in
alphabetical order.