From: KH Lau Date: Tue, 30 Jan 2018 07:57:36 +0000 (+0800) Subject: GroupRights.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=6a25658ba5c1212f281fd670feb68729efc7918e GroupRights.php --- diff --git a/GroupRights.php b/GroupRights.php index 7be2698..b023314 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -88,9 +88,9 @@ class Pman_Admin_GroupRights extends Pman } //print_r($ar); usort($ar, function($a, $b) { - $retval = $a['rightname'] > $b['rightname']; + $retval = $a['rightname'] - $b['rightname']; if ($retval == 0) { - $retval = $a['descript'] > $b['descript']; + $retval = $a['descript'] - $b['descript']; } return $retval; });