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
@@ -893,7 +893,7 @@ impl<T: Trait<I>, I: Instance> ChangeMembers<T::AccountId> for Module<T, I> {
}
// remove accounts from all current voting in motions.
let mut outgoing = outgoing.to_vec();
outgoing.sort_unstable();
outgoing.sort();
for h in Self::proposals().into_iter() {
<Voting<T, I>>::mutate(h, |v|
if let Some(mut votes) = v.take() {