diff --git a/app/index/controller/Attachment.php b/app/index/controller/Attachment.php index bb339974..219a5983 100644 --- a/app/index/controller/Attachment.php +++ b/app/index/controller/Attachment.php @@ -31,6 +31,7 @@ class Attachment extends Common ->language($this->lang_id) ->parent(0) ->isShow(true) + ->order(['sort' => 'asc', 'id' => 'desc']) ->select(); View::assign('categorys', $categorys); @@ -46,6 +47,7 @@ class Attachment extends Common ]) ->language($this->lang_id) ->category($param['id']??null) + ->order(['sort' => 'asc', 'id' => 'desc']) ->paginate([ 'list_rows' => $param['size'], 'page' => $param['page'],