From: cajus Date: Tue, 22 May 2007 12:36:01 +0000 (+0000) Subject: Added sorting X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ac3fba7dbc40e36054e7e6b4c3cc1d0c0bef393;p=gosa.git Added sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6434 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 6a8e23b64..8e9fb9fab 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -631,7 +631,8 @@ class config { $ret = array(); $depth ++; - /* Walk through array */ + /* Walk through array */ + ksort($arr); foreach($arr as $name => $entries){ /* If this department is the last in the current tree position @@ -652,7 +653,7 @@ class config { if(isset($entries['ENTRY'])){ $a = ""; for($i = 0 ; $i < $depth ; $i ++){ - $a.=" "; + $a.="."; } $ret[$entries['ENTRY']]=$a." ".$name; }