Code

Added script sorting
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 May 2006 07:30:53 +0000 (07:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 May 2006 07:30:53 +0000 (07:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3213 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiSummaryTab.inc

index 45402b6b2c7e9d378e5fb4d0e653878d59892789..f85bffaab2b2ac462ef3c6051ac460f8540213b1 100644 (file)
@@ -203,21 +203,19 @@ class faiSummaryTab extends plugin{
           $nums = array();          
 
           if($key == "FAIscript"){
-      
-            krsort($entry['Entries']);
             foreach($entry['Entries'] as $scripts){
-              ksort($scripts);
               foreach($scripts as $script){
                 
-//                $script['cn'][0] = "(".$script['FAIpriority'][0].") ".$script['cn'][0];
                 if(!isset($nums[$script['cn'][0]])){
                   $nums[$script['cn'][0]]= 0;
                 } 
                 $nums[$script['cn'][0]] ++;
             
-                $tmp[] = $script;
+                $tmp[$script['FAIpriority'][0].$script['cn'][0].$script['CLASS']] = $script;
               }
             }
+            krsort($tmp);;
+            
             $entry['Entries'] = $tmp;
           }else{
             foreach($entry['Entries'] as $script){