Sorting the file names properly