From 32616332315cbcef46ec35178c8c11a946fb8a4b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 22 Sep 2003 11:14:21 +0000 Subject: [PATCH] sort the apps by title in admin->applications --- admin/inc/class.uiapplications.inc.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/admin/inc/class.uiapplications.inc.php b/admin/inc/class.uiapplications.inc.php index 7bc6dd9638..cfc918fd0c 100644 --- a/admin/inc/class.uiapplications.inc.php +++ b/admin/inc/class.uiapplications.inc.php @@ -59,14 +59,7 @@ $sort = $sort ? $sort : 'ASC'; - if($sort == 'ASC') - { - ksort($apps); - } - else - { - krsort($apps); - } + uasort($apps,create_function('$a,$b','return strcasecmp($a[\'title\'],$b[\'title\'])'.($sort != 'ASC' ? '* -1' : '').';')); if ($start && $offset) {