summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/network/connection_manager.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 36fd07a..12cadf5 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@
- Change prism54 wifi driver to p54pci/p54usb (#52018)
- Don't guess gateway and nameserver if not specified (#28033)
- Sort wireless networks by signal level by default
+- Fix inverted wireless networks signal level sorting
0.86.1:
- ignore non-fatal wpa_supplicant messages (#54002)
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 37c8606..e6b2a83 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -304,7 +304,7 @@ sub create_networks_list {
my ($sortable, $iter_left, $iter_right) = @_;
my $s1 = $cmanager->{connection}{networks}{$sortable->get($iter_left, 0)}->{signal_strength};
my $s2 = $cmanager->{connection}{networks}{$sortable->get($iter_right, 0)}->{signal_strength};
- return $s2 <=> $s1;
+ return $s1 <=> $s2;
});
$cmanager->{gui}{networks_list}->get_column(3)->set_sort_column_id(3);
$cmanager->{gui}{networks_list}->get_model->set_sort_func (3, sub {