Sort key mappings and node positions by key

This commit is contained in:
Dennis Kobert
2026-09-14 12:53:16 +02:00
parent 8281d082f4
commit c0a793784b
2 changed files with 2 additions and 2 deletions
@@ -5311,7 +5311,7 @@ impl NodeNetworkInterface {
})
.collect::<Vec<(NodeId, i32)>>();
node_ids_with_position.sort_unstable_by(|a, b| a.1.cmp(&b.1));
node_ids_with_position.sort_unstable_by_key(|entry| entry.1);
Some(node_ids_with_position.into_iter().map(|(node_id, _)| node_id).collect::<Vec<_>>())
}