From d500fb90dddb28345c71edd0721ef35a4f10f2ff Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sun, 6 Aug 2023 03:36:45 +0200 Subject: [PATCH] fix sorting --- src/worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;