From 129f05a5ecd789cd409f945a968182a5b68c0e6c Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 18 Jan 2011 11:19:18 -0500 Subject: [PATCH] Bug 5634: BZ5634 order branch list alphabetically, without taking care of uc/lc Perl separates uc & lc in cmp. So we just uc() to have list properly ordered Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- C4/Branch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Branch.pm b/C4/Branch.pm index db7a87f2ff..1f26e35240 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -160,7 +160,7 @@ sub GetBranchesLoop (;$$) { # since this is what most pages want anyway my $onlymine = @_ ? shift : onlymine(); my $branches = GetBranches($onlymine); my @loop; - foreach (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) { + foreach ( sort { uc($branches->{$a}->{branchname}) cmp uc($branches->{$b}->{branchname}) } keys %$branches ) { push @loop, { value => $_, selected => ($_ eq $branch) ? 1 : 0, -- 2.20.1