From 45d143bd684c49801ce5da9c6c878b5c57b16cf8 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Feb 2008 14:37:41 +0000 Subject: [PATCH] Group - Application -Applications are now sorted. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8870 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/groups/apps/class_groupApplication.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 33231aacd..43232f7e8 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -80,7 +80,18 @@ class appgroup extends plugin $ret = array_merge($ret,get_list("(objectClass=gosaApplication)","application",$dep,array("*"),GL_NONE)); } } - $this->_cache['ReleaseApps'][$release_info['suffix']] = $ret; + + $tmp = array(); + foreach($ret as $key => $app){ + $tmp[$key] = $app['cn'][0]; + } + natcasesort($tmp); + $res = array(); + foreach($tmp as $key => $app){ + $res[] = $ret[$key]; + } + + $this->_cache['ReleaseApps'][$release_info['suffix']] = $res; } $this->apps = $this->_cache['ReleaseApps'][$release_info['suffix']]; } -- 2.30.2