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 <nengard@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
2eb36a76fd
commit
129f05a5ec
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue