Browse Source

[backend] Utilisateurs : ordre par type

dev
Guillaume 4 years ago
parent
commit
0a32cb034a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/User.php

+ 1
- 1
common/models/User.php View File

@@ -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;
}

Loading…
Cancel
Save