From 58c7dc84a6703bb4a0d867fe4256200c71adfb12 Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Sat, 19 Jan 2019 22:50:42 +0800 Subject: [PATCH] fix --- application/index/controller/admin/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/controller/admin/Group.php b/application/index/controller/admin/Group.php index 936d12fa..07304460 100644 --- a/application/index/controller/admin/Group.php +++ b/application/index/controller/admin/Group.php @@ -25,7 +25,7 @@ class Group extends Base public function index() { - $groups = GroupModel::select()->each(function ($item) { + $groups = GroupModel::select()->order('id', 'desc')->each(function ($item) { $item->strategy_str = isset($this->strategyList[$item->strategy]) ? $this->strategyList[$item->strategy]['name'] : '未知'; return $item; });