From 3d13c3fd4288990710785f8203ad413a8e6a21d7 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Fri, 25 Aug 2023 13:45:18 +0200 Subject: [PATCH] overview: sortorder by label --- public_html/deployment/classes/projectlist.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public_html/deployment/classes/projectlist.class.php b/public_html/deployment/classes/projectlist.class.php index 7b846407..92128f53 100644 --- a/public_html/deployment/classes/projectlist.class.php +++ b/public_html/deployment/classes/projectlist.class.php @@ -81,7 +81,18 @@ class projectlist extends base{ foreach (array_keys($oPrj1->getPhases()) as $sPhase) { $sPhaseFilter.='<option value="' . $sPhase . '" >' . $sPhase . '</option>'; } + + // #6611 Übersichtsseite nach Project Name sortieren + // foreach ($oPrj1->getProjects() as $sPrj) { + + $aProjectLabels=[]; foreach ($oPrj1->getProjects() as $sPrj) { + $oPrj = new project($sPrj); + $aProjectLabels[$oPrj->getLabel().'-'.$sPrj]=$sPrj; + } + ksort($aProjectLabels); + + foreach (array_values($aProjectLabels) as $sPrj) { $oPrj = new project($sPrj); $sPrjFilter.='<option value="' . $sPrj . '">' . $oPrj->getLabel() . '</option>'; -- GitLab