From 8684600c7321fba03f7441471b020c545711ae2f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 19 Dec 2007 12:15:52 +0000 Subject: [PATCH] Fixed sorting of systems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8144 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/admin/systems/class_systemManagement.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gosa-core/plugins/admin/systems/class_systemManagement.inc b/gosa-core/plugins/admin/systems/class_systemManagement.inc index 60a577e8b..03a3b8386 100644 --- a/gosa-core/plugins/admin/systems/class_systemManagement.inc +++ b/gosa-core/plugins/admin/systems/class_systemManagement.inc @@ -1158,14 +1158,16 @@ class systems extends plugin } } - $tmp=array(); + $tmp =array(); + $tmp2 =array(); foreach($this->terminals as $tkey => $val ){ $tmp[strtolower($val['cn'][0]).$val['dn']]=$val; + $tmp2[strtolower($val['cn'][0]).$val['dn']] = strtolower($val['cn'][0]).$val['dn']; } - ksort($tmp); + natcasesort($tmp2); $this->terminals=array(); - foreach($tmp as $val){ - $this->terminals[]=$val; + foreach($tmp2 as $val){ + $this->terminals[]=$tmp[$val]; } reset ($this->terminals); } -- 2.30.2