From: hickert Date: Tue, 12 Feb 2008 14:37:41 +0000 (+0000) Subject: Group - Application X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45d143bd684c49801ce5da9c6c878b5c57b16cf8;p=gosa.git Group - Application -Applications are now sorted. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8870 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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']]; }