Sort the files in descending order

pull/388/head
Blaž Hrastnik 3 years ago
parent 82fc28a0ce
commit d94410a678

@ -106,7 +106,7 @@ pub fn file_picker(root: PathBuf) -> Picker<PathBuf> {
files.take(MAX).collect()
};
files.sort_by_key(|file| file.1);
files.sort_by_key(|file| std::cmp::Reverse(file.1));
let files = files.into_iter().map(|(path, _)| path).collect();

Loading…
Cancel
Save