diff --git a/src/worker.rs b/src/worker.rs index 20136c1..22df09b 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -202,8 +202,8 @@ impl Worker { 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;