diff --git a/src/wallet/signer.rs b/src/wallet/signer.rs index f6cee501..c2cbef02 100644 --- a/src/wallet/signer.rs +++ b/src/wallet/signer.rs @@ -395,7 +395,7 @@ impl SignersContainer { /// Returns the list of signers in the container, sorted by lowest to highest `ordering` pub fn signers(&self) -> Vec<&Arc> { let mut items = self.0.iter().collect::>(); - items.sort_by(|(a, _), (b, _)| (*a).cmp(*b)); + items.sort_unstable_by_key(|(key, _)| *key); items.into_iter().map(|(_, v)| v).collect() }