📜  默认排序 yii2 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:54.078000             🧑  作者: Mango

代码示例1
$dataProvider = new ActiveDataProvider([
     'query' => $query,
     'sort'=> ['defaultOrder' => ['topic_order' => SORT_ASC]],
 ]);