mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 08:21:03 +00:00
Cleanup our sort usage (#6754)
This commit is contained in:
@@ -264,7 +264,7 @@ pub(crate) fn do_equalize_float<A>(
|
||||
e.1 = 0.0;
|
||||
});
|
||||
|
||||
elected_edges.sort_unstable_by(|x, y|
|
||||
elected_edges.sort_by(|x, y|
|
||||
support_map.get(&x.0)
|
||||
.and_then(|x| support_map.get(&y.0).and_then(|y| x.total.partial_cmp(&y.total)))
|
||||
.unwrap_or(sp_std::cmp::Ordering::Equal)
|
||||
|
||||
Reference in New Issue
Block a user