刘桂岩 4 tahun lalu
induk
melakukan
364751d90b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/manage/controller/Institution.php

+ 1 - 1
application/manage/controller/Institution.php

@@ -55,7 +55,7 @@ class Institution extends Base {
         if (empty($pagesize) || $pagesize < 1) {
             $pagesize = 30;
         }
-        $rs = Db::table("institution")->where($whereArr)->page($page, $pagesize)->select();
+        $rs = Db::table("institution")->where($whereArr)->page($page, $pagesize)->order('createdAt asc')->select();
         $num = Db::table("institution")->where($whereArr)->count();
         $data['total'] = $num;
         $data['rows'] = $rs;