From 4b69faa8031d7f6de6c1b55c468c2acdd54f52a9 Mon Sep 17 00:00:00 2001 From: KH Lau Date: Tue, 30 Jan 2018 16:23:16 +0800 Subject: [PATCH] GroupRights.php --- GroupRights.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/GroupRights.php b/GroupRights.php index 24a37db..daf03b3 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -93,18 +93,8 @@ class Pman_Admin_GroupRights extends Pman $descript[$key] = $row['descript']; } - // Sort the data with volume descending, edition ascending - //array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar); + array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar); - //print_r($ar); exit; - - usort($ar, function($a, $b) { - $rdiff = $a['shortname'] - $b['shortname']; - if ($rdiff) return $rdiff; - return $a['descript'] - $b['descript']; - }); - - print_r($ar);exit; $this->jdata($ar); -- 2.39.2