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

$query->andFilterWhere(['like', 'phone', $params['phone']]); $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; return $query;
} }

Loading…
Cancel
Save