diff options
author | Blaž Hrastnik | 2021-06-28 04:08:38 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-28 04:08:38 +0000 |
commit | d94410a6782a2ac52dde2708fcadf9cbddfd8f93 (patch) | |
tree | 8e5e6233546dbc0c66610a6a188b8b79f221f22b | |
parent | 82fc28a0ce2cb2b86968335f32e95aaff3e2cba4 (diff) |
Sort the files in descending order
-rw-r--r-- | helix-term/src/ui/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 2a4d246d..2d4cf9cf 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -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(); |