Sort values (#1976)
This commit is contained in:
parent
377fe4796c
commit
54b9e0d87b
|
@ -140,8 +140,8 @@ sub buildForm {
|
||||||
$nbr /= 2;
|
$nbr /= 2;
|
||||||
$self->logger->debug(
|
$self->logger->debug(
|
||||||
"Building $key with type 'select' and $nbr entries...");
|
"Building $key with type 'select' and $nbr entries...");
|
||||||
@$choices = map { { key => $_, value => $hash{$_} } }
|
@$choices = sort { $a->{value} cmp $b->{value} }
|
||||||
sort keys %hash;
|
map { { key => $_, value => $hash{$_} } } keys %hash;
|
||||||
{
|
{
|
||||||
select => 1,
|
select => 1,
|
||||||
key => $key,
|
key => $key,
|
||||||
|
@ -158,7 +158,7 @@ sub buildForm {
|
||||||
value => $values[0]
|
value => $values[0]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} sort keys %{ $self->conf->{findUserSearchingAttributes} };
|
} keys %{ $self->conf->{findUserSearchingAttributes} };
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user