sorted admin console and fixed pod in Utility
This commit is contained in:
parent
8c6cc0ebd7
commit
145472845f
2 changed files with 10 additions and 4 deletions
|
|
@ -198,9 +198,15 @@ sub getAdminFunction {
|
|||
if ($id) {
|
||||
return $self->_formatFunction($functions->{$id});
|
||||
} else {
|
||||
my @list;
|
||||
my %names;
|
||||
foreach my $id (keys %{$functions}) {
|
||||
push(@list,$self->_formatFunction($functions->{$id}));
|
||||
my $func = $self->_formatFunction($functions->{$id});
|
||||
$names{$func->{title}} = $func;
|
||||
}
|
||||
my @sorted = sort {$a cmp $b} keys %names;
|
||||
my @list;
|
||||
foreach my $key (@sorted) {
|
||||
push(@list,$names{$key});
|
||||
}
|
||||
return \@list;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ This package provides miscellaneous but useful utilities to the WebGUI programme
|
|||
$integer = randint($low,$high);
|
||||
randomizeArray(\@array);
|
||||
$hashRef = randomizeHash(\%hash);
|
||||
$hash = sortHash(%hash);
|
||||
$hash = sortHashDescending(%hash);
|
||||
%hash = sortHash(%hash);
|
||||
%hash = sortHashDescending(%hash);
|
||||
|
||||
=head1 METHODS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue