Skip to content

Commit

Permalink
rest: fix index result being random ordered
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Apr 19, 2024
1 parent ceaedae commit 5e7a3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Thruk/Controller/rest_v1.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1419,8 +1419,8 @@ sub _rest_get_index {
my($c) = @_;
my($paths, $keys, $docs) = get_rest_paths($c);
my $data = [];
for my $path (sort _sort_by_proto (keys %{$paths})) {
for my $proto (sort keys %{$paths->{$path}}) {
for my $path (sort keys %{$paths}) {
for my $proto (sort _sort_by_proto (keys %{$paths->{$path}})) {
push @{$data}, {
url => $path,
protocol => $proto,
Expand Down

0 comments on commit 5e7a3f1

Please sign in to comment.