Reordering branches.
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Mon, 21 Jul 2008 08:11:08 +0000 (10:11 +0200)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:31 +0000 (21:15 +0200)
circ/branchtransfers.pl

index 36f4da3..bac277d 100755 (executable)
@@ -105,7 +105,7 @@ if ( $request eq 'KillReserved' ) {
 
 # set up the branchselect options....
 my @branchoptionloop;
 
 # set up the branchselect options....
 my @branchoptionloop;
-foreach my $br ( keys %$branches ) {
+foreach my $br (sort {$branches->{$a}->{branchname} cmp $branches->{$b}->{branchname}} keys %$branches ) {
     my %branch;
     $branch{selected} = ( $br eq $tobranchcd );
     $branch{code}     = $br;
     my %branch;
     $branch{selected} = ( $br eq $tobranchcd );
     $branch{code}     = $br;