aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--Rpmdrake/gui.pm3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f10a1847..b7011218 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- even better packages sorting in searches (x86_64 first)
+- sort packages the same way when browsing groups
Version 5.28 - 15 January 2012, Thierry Vignaud
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm
index 428085c5..d578b887 100644
--- a/Rpmdrake/gui.pm
+++ b/Rpmdrake/gui.pm
@@ -993,7 +993,8 @@ or you already installed all of them."));
$explanation_only_once = 1;
}
}
- @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } sort @keys;
+ # FIXME: better do this on first group access for faster startup...
+ @elems = map { [ $_, !$flat && ctreefy($pkgs->{$_}{pkg}->group) ] } sort_packages(@keys);
}
my %sortmethods = (
by_size => sub { sort { $pkgs->{$b->[0]}{pkg}->size <=> $pkgs->{$a->[0]}{pkg}->size } @_ },