fix reverse sorting

This commit is contained in:
rabite 2020-02-08 01:05:04 +01:00
parent e3b4c997bf
commit 2e1da40130
1 changed files with 6 additions and 0 deletions

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