Sort libraries by name in holds queue's select input.
authorRyan Higgins <rch@liblime.com>
Thu, 11 Sep 2008 18:17:24 +0000 (13:17 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 17 Sep 2008 03:17:04 +0000 (22:17 -0500)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
circ/view_holdsqueue.pl

index 739dbe0..a52400b 100755 (executable)
@@ -65,7 +65,7 @@ if ( $run_report ) {
 my $branches = GetBranches;
 my $branch   = C4::Context->userenv->{"branchname"};
 my @branchloop;
-foreach my $thisbranch ( keys %$branches ) {
+foreach my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches ) {
     my $selected = 1 if $thisbranch eq $branch;
     my %row = (
         value      => $thisbranch,