From: hickert Date: Mon, 29 May 2006 11:32:05 +0000 (+0000) Subject: Fixed sorting for user management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a99cba94cac87dbd9e402343a558e9958f5a2813;p=gosa.git Fixed sorting for user management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3546 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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]; } }