diff --git a/protocols/autonat/src/v2/client/behaviour.rs b/protocols/autonat/src/v2/client/behaviour.rs index 5ca8d029b40..0022d07f643 100644 --- a/protocols/autonat/src/v2/client/behaviour.rs +++ b/protocols/autonat/src/v2/client/behaviour.rs @@ -329,7 +329,7 @@ where entries .into_iter() - .rev() + .rev() // `sort_unstable` is ascending .take(self.config.max_candidates) .map(|(addr, _)| addr) }