Bug 2553: Alphabetizes the drop-down lists of libraries in the Existing Holds view...
authorGarry Collum <gcollum@gmail.com>
Thu, 16 Jul 2009 21:52:18 +0000 (17:52 -0400)
committerGalen Charlton <galen.charlton@liblime.com>
Tue, 21 Jul 2009 01:14:28 +0000 (21:14 -0400)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
reserve/request.pl

index 60f7ea4..b865c5c 100755 (executable)
@@ -447,7 +447,7 @@ foreach my $biblionumber (@biblionumbers) {
                 );
         }
         my @branchloop;
-        foreach my $br ( keys %$branches ) {
+        foreach my $br ( sort {$branches->{$a}->{'branchname'} cmp $branches->{$b}->{'branchname'}} keys %$branches ) {
             my %abranch;
             $abranch{'selected'}   = ( $br eq $res->{'branchcode'} );
             $abranch{'branch'}     = $br;