controllers/actions/ListAction.php
public function run()
    {
        $searchModel = new LanguageSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
        $dataProvider->sort = ['defaultOrder' => ['status' => SORT_DESC]];

        return $this->controller->render('list', [
            'dataProvider' => $dataProvider,
            'searchModel' => $searchModel,
        ]);
    }
public function run()
    {
        $searchModel = new LanguageSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
        $dataProvider->sort = ['defaultOrder' => ['status' => SORT_DESC]];

        return $this->controller->render('list', [
            'dataProvider' => $dataProvider,
            'searchModel' => $searchModel,
        ]);
    }
public function run ( ) { $ searchModel = new LanguageSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> getQueryParams ( ) ) ; $ dataProvider -> sort = [ 'defaultOrder' => [ 'status' => SORT_DESC ] ] ; return $ this -> controller -> render ( 'list' , [ 'dataProvider' => $ dataProvider , 'searchModel' => $ searchModel , ] ) ; }
List of languages

@return string
List of languages