Sort users on team page

This commit is contained in:
Igor Scheller 2018-12-27 14:16:09 +01:00
parent acd9ec6966
commit 689735ad51
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ function Users_by_angeltype($angeltype)
->join('UserAngelTypes', 'users.id', '=', 'UserAngelTypes.user_id') ->join('UserAngelTypes', 'users.id', '=', 'UserAngelTypes.user_id')
->leftJoin('UserDriverLicenses', 'users.id', '=', 'UserDriverLicenses.user_id') ->leftJoin('UserDriverLicenses', 'users.id', '=', 'UserDriverLicenses.user_id')
->where('UserAngelTypes.angeltype_id', '=', $angeltype['id']) ->where('UserAngelTypes.angeltype_id', '=', $angeltype['id'])
->orderBy('users.name')
->get(); ->get();
} }