From 7876fd1b36efbe4f12bd96175926d2dbecbbdd13 Mon Sep 17 00:00:00 2001 From: Cheong Lau <234708519+Cheong-Lau@users.noreply.github.com> Date: Tue, 7 Oct 2025 20:52:31 +0000 Subject: [PATCH] fix(network): reversed ordering of networks --- cosmic-applet-network/src/network_manager/current_networks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmic-applet-network/src/network_manager/current_networks.rs b/cosmic-applet-network/src/network_manager/current_networks.rs index a92e0418..aec61763 100644 --- a/cosmic-applet-network/src/network_manager/current_networks.rs +++ b/cosmic-applet-network/src/network_manager/current_networks.rs @@ -116,10 +116,10 @@ impl std::cmp::Ord for ActiveConnectionInfo { fn cmp(&self, other: &Self) -> std::cmp::Ordering { match (self, other) { (Self::Vpn { .. }, Self::Wired { .. } | Self::WiFi { .. }) - | (Self::Wired { .. }, Self::WiFi { .. }) => std::cmp::Ordering::Greater, + | (Self::Wired { .. }, Self::WiFi { .. }) => std::cmp::Ordering::Less, (Self::WiFi { .. }, Self::Wired { .. } | Self::Vpn { .. }) - | (Self::Wired { .. }, Self::Vpn { .. }) => std::cmp::Ordering::Less, + | (Self::Wired { .. }, Self::Vpn { .. }) => std::cmp::Ordering::Greater, (Self::Vpn { name: n1, .. }, Self::Vpn { name: n2, .. }) | (Self::Wired { name: n1, .. }, Self::Wired { name: n2, .. })