From e97fd212c1e244dd1d7e16d842d81d4b8b5c2ef9 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 17 Jul 2009 19:01:21 -0400 Subject: [PATCH] Bug 2553: Fixes the location drop-down alphabetization for the catalog statistics report form. Content-Type: text/plain; charset="utf-8" --- reports/catalogue_stats.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/reports/catalogue_stats.pl b/reports/catalogue_stats.pl index 34b649f..365065f 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), -- 1.5.6.5