From f4ddbfc3c1e37cf2c85666bddbf062d3f7e49ab4 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 17 Jul 2009 19:08:15 -0400 Subject: [PATCH] Bug 2553: Fixes the location drop-down alphabetization for the catalog statistics report form. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- reports/catalogue_stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index 34b649f100..365065fc41 100755 --- a/reports/catalogue_stats.pl +++ b/reports/catalogue_stats.pl @@ -156,7 +156,7 @@ if ($do_it) { my $branches=GetBranches(); my @branchloop; - foreach (keys %$branches) { + foreach (sort {$branches->{$a}->{'branchname'} cmp $branches->{$b}->{'branchname'}} keys %$branches) { my $thisbranch = ''; # FIXME: populate $thisbranch to preselect one my %row = (branchcode => $_, selected => ($thisbranch eq $_ ? 1 : 0), -- 2.39.5