From a99cba94cac87dbd9e402343a558e9958f5a2813 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 May 2006 11:32:05 +0000 Subject: [PATCH] Fixed sorting for user management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3546 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 7d2fd5cda..c03c08937 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -702,6 +702,7 @@ class userManagement extends plugin array("uid", "givenName", "sn", "objectClass"), GL_SIZELIMIT); } $SortTemp = array(); + $List = array(); foreach($ListTemp as $Key => $Entry){ // Generate caption for rows if (isset($Entry["sn"]) && isset($Entry["givenName"])){ @@ -710,12 +711,16 @@ class userManagement extends plugin $display= "[".$Entry["uid"][0]."]"; } - $SortTemp[$Key] = $display; + $display = strtolower($display); + $List[$display] = $Entry; + $SortTemp[$display] = $display; } - natcasesort($SortTemp); + sort($SortTemp); reset($SortTemp); - foreach($SortTemp as $Key => $Value){ - $this->list[] = $ListTemp[$Key]; + + $this->list = array(); + foreach($SortTemp as $Key){ + $this->list[] = $List[$Key]; } } -- 2.30.2