Sort the files