From c98ccbbbc76cfa3c13e8c176c18df7b32db24035 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 May 2006 07:30:53 +0000 Subject: [PATCH] Added script sorting git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3213 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index 45402b6b2..f85bffaab 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -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){ -- 2.30.2