mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 21:20:23 +03:00
Sort the files in descending order
This commit is contained in:
parent
82fc28a0ce
commit
d94410a678
@ -106,7 +106,7 @@ pub fn file_picker(root: PathBuf) -> Picker<PathBuf> {
|
|||||||
files.take(MAX).collect()
|
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();
|
let files = files.into_iter().map(|(path, _)| path).collect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user