mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 15:09:49 +00:00
Remove sort_unstable_by (#4314)
This commit is contained in:
1 parent
dc33cda116
commit
99728aaca2
1 file changed
+1
-1
@@ -957,7 +957,7 @@ fn limit_disputes<T: Config>(
|
||||
// Sort the dispute statements according to the following prioritization:
|
||||
// 1. Prioritize local disputes over remote disputes.
|
||||
// 2. Prioritize older disputes over newer disputes.
|
||||
disputes.sort_unstable_by(|a, b| {
|
||||
disputes.sort_by(|a, b| {
|
||||
let a_local_block = T::DisputesHandler::included_state(a.session, a.candidate_hash);
|
||||
let b_local_block = T::DisputesHandler::included_state(b.session, b.candidate_hash);
|
||||
match (a_local_block, b_local_block) {
|
||||
|
||||
Reference in new issue
Block a user