Sorting list of filenames