mirror of
https://github.com/solaeus/nucleo.git
synced 2024-11-12 18:17:11 +00:00
fix sorting
This commit is contained in:
parent
6127ab86a3
commit
d500fb90dd
@ -202,8 +202,8 @@ impl<T: Sync + Send + 'static> Worker<T> {
|
||||
let canceled = par_quicksort(
|
||||
&mut self.matches,
|
||||
|match1, match2| {
|
||||
if match1.score > match2.score {
|
||||
return true;
|
||||
if match1.score != match2.score {
|
||||
return match1.score > match2.score;
|
||||
}
|
||||
if match1.idx == u32::MAX {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user