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,