From 552d77c8ad1c9787538bcc495e8f15739d61cf93 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Sun, 10 Feb 2008 01:41:49 -0600 Subject: [PATCH] ordering branches by branchcodes on Auth page. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 414c898183..92fdf7bb0a 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -683,7 +683,7 @@ sub checkauth { # get the branchloop, which we need for authentication my $branches = GetBranches(); my @branch_loop; - for my $branch_hash (keys %$branches) { + for my $branch_hash (sort keys %$branches) { push @branch_loop, {branchcode => "$branch_hash", branchname => $branches->{$branch_hash}->{'branchname'}, }; } -- 2.39.5