From 1c052fc398aa07b00ed3994c03dec6eb3082d3e7 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Thu, 11 Sep 2008 13:17:24 -0500 Subject: [PATCH] Sort libraries by name in holds queue's select input. Signed-off-by: Galen Charlton --- circ/view_holdsqueue.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl index 1b8c09bf9d..3abe39e5f9 100755 --- a/circ/view_holdsqueue.pl +++ b/circ/view_holdsqueue.pl @@ -64,7 +64,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, -- 2.20.1