Sorting files in the output list