1
0
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:
rabite 2020-02-08 01:05:04 +01:00
parent e3b4c997bf
commit 2e1da40130

View File

@ -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) {