Skip to content

Commit 5e7a3f1

Browse files
committed
rest: fix index result being random ordered
1 parent ceaedae commit 5e7a3f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Thruk/Controller/rest_v1.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -1419,8 +1419,8 @@ sub _rest_get_index {
14191419
my($c) = @_;
14201420
my($paths, $keys, $docs) = get_rest_paths($c);
14211421
my $data = [];
1422-
for my $path (sort _sort_by_proto (keys %{$paths})) {
1423-
for my $proto (sort keys %{$paths->{$path}}) {
1422+
for my $path (sort keys %{$paths}) {
1423+
for my $proto (sort _sort_by_proto (keys %{$paths->{$path}})) {
14241424
push @{$data}, {
14251425
url => $path,
14261426
protocol => $proto,

0 commit comments

Comments
 (0)