From f68ec770dbd155a690789aa8d97e17c4302ec087 Mon Sep 17 00:00:00 2001 From: KH Lau Date: Tue, 30 Jan 2018 16:24:38 +0800 Subject: [PATCH] GroupRights.php --- GroupRights.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/GroupRights.php b/GroupRights.php index daf03b3..4e1c714 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -87,14 +87,14 @@ class Pman_Admin_GroupRights extends Pman ); } + if (isset($_GET['_sort']) {} + foreach ($ar as $key => $row) { + $shortname[$key] = $row['shortname']; + $descript[$key] = $row['descript']; + } - foreach ($ar as $key => $row) { - $shortname[$key] = $row['shortname']; - $descript[$key] = $row['descript']; + array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar); } - - array_multisort($shortname, SORT_ASC, $descript, SORT_ASC, $ar); - $this->jdata($ar); -- 2.39.2