From 4ac3fba7dbc40e36054e7e6b4c3cc1d0c0bef393 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 22 May 2007 12:36:01 +0000 Subject: [PATCH] Added sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6434 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.30.2