mirror of https://github.com/bobwen-dev/hunter
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…
Reference in New Issue