From 78e7037dfb5be8791e0236a63d3186677bdf1875 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 4 Apr 2010 14:41:39 +0000 Subject: [PATCH] sort lists --- lam/templates/profedit/profilemain.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lam/templates/profedit/profilemain.php b/lam/templates/profedit/profilemain.php index 254db9cf..1d1b288b 100644 --- a/lam/templates/profedit/profilemain.php +++ b/lam/templates/profedit/profilemain.php @@ -86,9 +86,10 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) { // get list of profiles for each account type for ($i = 0; $i < sizeof($profileClasses); $i++) { $profileList = getAccountProfiles($profileClasses[$i]['scope']); + natcasesort($profileList); $profiles = ""; - for ($l = 0; $l < sizeof($profileList); $l++) { - $profiles = $profiles . "\n"; + foreach ($profileList as $p) { + $profiles = $profiles . "\n"; } $profileClasses[$i]['profiles'] = $profiles; } @@ -108,8 +109,13 @@ echo "\n"; echo "
\n"; echo "\n";
\n"; echo "\n"; echo "