ordering branches by branchcodes.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2008-02-10 01:41:53 -06:00 committed by Joshua Ferraro
parent 792b538c8c
commit 02c3fe4c45
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ my $default = C4::Context->userenv->{branch};
my @values;
my %label_of;
foreach my $branchcode ( keys %{$branches} ) {
foreach my $branchcode (sort keys %{$branches} ) {
push @values, $branchcode;
$label_of{$branchcode} = $branches->{$branchcode}->{branchname};
}