@@ -43,9 +43,10 @@ class UserController extends BackendController { | |||
$query = User::findBy($params); | |||
$dataProvider = new ActiveDataProvider([ | |||
'query' => $query | |||
'query' => $query, | |||
'sort' => ['attributes' => ['nom','prenom']], | |||
]); | |||
$etablissement = Etablissement::find() | |||
->where(['id' => Yii::$app->user->identity->id_etablissement]) | |||
->one(); |