Cleanup our sort usage (#6754)

This commit is contained in:
Gavin Wood authored and GitHub committed 2020-07-29 14:00:51 +02:00
1 parent 1ab7719314
commit 6bfbb7c6f1
12 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -1238,7 +1238,7 @@ pub trait ChangeMembers<AccountId: Clone + Ord> {
///
/// This resets any previous value of prime.
fn change_members(incoming: &[AccountId], outgoing: &[AccountId], mut new: Vec<AccountId>) {
new.sort_unstable();
new.sort();
Self::change_members_sorted(incoming, outgoing, &new[..]);
}