Commit 55e54a5f authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили обратную сортировку по датам

parent f3e76ec8
...@@ -24,7 +24,12 @@ class BlogScheduleAdminController extends AdminController { ...@@ -24,7 +24,12 @@ class BlogScheduleAdminController extends AdminController {
public function actionManage(){ public function actionManage(){
$dataProvider = new ActiveDataProvider([ $dataProvider = new ActiveDataProvider([
'query' => BlogSchedule::find()->orderBy(['date DESC']) 'query' => BlogSchedule::find(),
'sort' => [
'defaultOrder' => [
'date' => SORT_DESC
]
]
]); ]);
return $this->render( return $this->render(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment