Improve file sorting