default sort yii2

Solutions on MaxInterview for default sort yii2 by the best coders in the world

showing results for - "default sort yii2"
Federica
17 Apr 2016
1$dataProvider = new ActiveDataProvider([
2     'query' => $query,
3     'sort'=> ['defaultOrder' => ['topic_order' => SORT_ASC]],
4 ]);