Sorting filenames, fixes #1