Merge branch 'ent-6986-11304-ordenar-alfabeticamente-los-resultados-snmp-en-discovery' into 'develop'

Modules alphabetically sorted in Discovery review

See merge request artica/pandorafms!3907
This commit is contained in:
Daniel Rodriguez 2021-04-06 17:09:28 +00:00
commit 1e90b0d300
1 changed files with 3 additions and 0 deletions

View File

@ -1493,6 +1493,9 @@ class DiscoveryTaskList extends HTML
$simple_data[] = $tmp;
if (is_array($data['modules'])) {
// Alphabetically sort.
ksort($data['modules'], SORT_STRING | SORT_FLAG_CASE);
$simple_data = array_merge(
$simple_data,
array_reduce(