Clean up file sorting