From 80e138fa40cd882f77327061d63c779973f774ee Mon Sep 17 00:00:00 2001 From: dGs- Date: Fri, 11 Oct 2019 03:32:25 +0200 Subject: [PATCH] removed the ksort block as it was not working (#10674) --- LibreNMS/Component.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/LibreNMS/Component.php b/LibreNMS/Component.php index d847ab33eb..5c7b9d3c26 100644 --- a/LibreNMS/Component.php +++ b/LibreNMS/Component.php @@ -158,14 +158,6 @@ class Component foreach ($this->reserved as $k => $v) { $RESULT[$component_device_id][$COMPONENT['id']][$k] = $COMPONENT[$k]; } - - // Sort each component array so the attributes are in order. - if (is_array($RESULT[$RESULT[$component_device_id][$COMPONENT['id']]])) { - ksort($RESULT[$RESULT[$component_device_id][$COMPONENT['id']]]); - } - if (is_array($RESULT[$RESULT[$component_device_id]])) { - ksort($RESULT[$RESULT[$component_device_id]]); - } } // limit array(start,count)