This commit is contained in:
2025-04-24 13:20:07 -04:00
parent 14254e44ba
commit 2586b43294

View File

@@ -86,11 +86,13 @@ impl Ord for MoveValueStats {
} }
let (s_cw, o_cw) = (self.chance_win(), other.chance_win()); let (s_cw, o_cw) = (self.chance_win(), other.chance_win());
if s_cw.is_some() | o_cw.is_some() {
if s_cw > o_cw { if s_cw > o_cw {
return Ordering::Greater; return Ordering::Greater;
} else if o_cw > s_cw { } else if o_cw > s_cw {
return Ordering::Less; return Ordering::Less;
} }
}
self.value.cmp(&other.value) self.value.cmp(&other.value)
} }