fix sorting

This commit is contained in:
Pascal Kuthe 2023-08-06 03:36:45 +02:00
parent 6127ab86a3
commit d500fb90dd
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

View File

@ -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;