sort case-insensitively
This commit is contained in:
parent
72ebf3417e
commit
56066a65ae
@ -4411,7 +4411,7 @@ sub git_project_list_body {
|
|||||||
);
|
);
|
||||||
my $oi = $order_info{$order};
|
my $oi = $order_info{$order};
|
||||||
if ($oi->{'type'} eq 'str') {
|
if ($oi->{'type'} eq 'str') {
|
||||||
@projects = sort {$a->{$oi->{'key'}} cmp $b->{$oi->{'key'}}} @projects;
|
@projects = sort {lc($a->{$oi->{'key'}}) cmp lc($b->{$oi->{'key'}})} @projects;
|
||||||
} else {
|
} else {
|
||||||
@projects = sort {$a->{$oi->{'key'}} <=> $b->{$oi->{'key'}}} @projects;
|
@projects = sort {$a->{$oi->{'key'}} <=> $b->{$oi->{'key'}}} @projects;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user