mirror of
https://github.com/solaeus/nucleo.git
synced 2024-11-10 01:27:10 +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(
|
let canceled = par_quicksort(
|
||||||
&mut self.matches,
|
&mut self.matches,
|
||||||
|match1, match2| {
|
|match1, match2| {
|
||||||
if match1.score > match2.score {
|
if match1.score != match2.score {
|
||||||
return true;
|
return match1.score > match2.score;
|
||||||
}
|
}
|
||||||
if match1.idx == u32::MAX {
|
if match1.idx == u32::MAX {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user