From e1cfb41bdaf19680cd358170c34698eeeab81a43 Mon Sep 17 00:00:00 2001 From: zengyyh Date: Sat, 24 Aug 2024 15:42:28 +0800 Subject: [PATCH] 1 --- app/admin/model/Course.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/model/Course.php b/app/admin/model/Course.php index fa4424c1..dda7706a 100644 --- a/app/admin/model/Course.php +++ b/app/admin/model/Course.php @@ -41,7 +41,7 @@ class Course extends CourseModel // 检索查询条件 $filter = $this->getFilter($param); $list = $this->where($filter) - ->order(['course_id' => 'desc']) + ->order(['sort' => 'asc','create_time' => 'desc']) ->paginate($pageSize); return $list; }