Sort local files by key