From: KH Lau Date: Tue, 30 Jan 2018 08:09:47 +0000 (+0800) Subject: GroupRights.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=b906a48779698370ec59c62b82f2e651b73d14d8 GroupRights.php --- diff --git a/GroupRights.php b/GroupRights.php index 29f0b6f..f0ae169 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -86,12 +86,23 @@ class Pman_Admin_GroupRights extends Pman ); } - //print_r($ar); + + foreach ($ar as $key => $row) { + $rightname[$key] = $row['rightname']; + $descript[$key] = $row['descript']; + } + + // Sort the data with volume descending, edition ascending + array_multisort($rightname, SORT_ASC, $descript, SORT_ASC, $ar); + + print_r($ar); exit; + /* usort($ar, function($a, $b) { $rdiff = $a['rightname'] - $b['rightname']; if ($rdiff) return $rdiff; return $a['descript'] - $b['descript']; }); + */ //print_r($ar);exit; $this->jdata($ar);