@@ -396,7 +396,7 @@ class User extends ActiveRecordCommon implements IdentityInterface | |||
$query->andFilterWhere(['like', 'phone', $params['phone']]); | |||
} | |||
$query->orderBy('user.lastname ASC, user.name ASC'); | |||
$query->orderBy('user.type DESC, user.lastname ASC, user.name ASC'); | |||
return $query; | |||
} |