mirror of
https://github.com/bobwen-dev/hunter
synced 2025-04-12 00:55:41 +02:00
fix reverse sorting
This commit is contained in:
parent
e3b4c997bf
commit
2e1da40130
@ -531,6 +531,12 @@ impl Files {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// This could be faster if the sorting itself was reversed
|
||||
// instead of reversing everything afterwards.
|
||||
if self.reverse {
|
||||
self.files.reverse();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn cycle_sort(&mut self) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user