From 9454ed2ff3114c38cf9e5f52376a6fb59ffff656 Mon Sep 17 00:00:00 2001 From: marcos Date: Mon, 1 Feb 2021 12:11:39 +0100 Subject: [PATCH] unsort template items --- pandora_console/include/functions_reporting.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 0d4b19efc0..face94f8e9 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -189,6 +189,14 @@ function reporting_make_reporting_data( $metaconsole_on = is_metaconsole(); $index_content = 0; + + usort( + $contents, + function ($a, $b) { + return ($a['order'] <=> $b['order']); + } + ); + foreach ($contents as $content) { $content['name'] = io_safe_input($content['name']); $content['description'] = io_safe_input($content['description']);