GroupRights.php
authorKH Lau <khlau@roojs.com>
Tue, 30 Jan 2018 08:23:16 +0000 (16:23 +0800)
committerKH Lau <khlau@roojs.com>
Tue, 30 Jan 2018 08:23:16 +0000 (16:23 +0800)
GroupRights.php

index 24a37db..daf03b3 100644 (file)
@@ -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);