summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-27 14:16:09 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2018-12-27 14:16:09 +0100
commit689735ad51a8ec7bd18c60be3407abf3bc17e228 (patch)
treef679a6343b92101388d4be6d7bbca13d4b3cf812
parentacd9ec696638ce03f084cdb5ee998ace8c7003c3 (diff)
Sort users on team page
-rw-r--r--includes/model/User_model.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php
index 304816e8..c8fbee47 100644
--- a/includes/model/User_model.php
+++ b/includes/model/User_model.php
@@ -104,6 +104,7 @@ function Users_by_angeltype($angeltype)
->join('UserAngelTypes', 'users.id', '=', 'UserAngelTypes.user_id')
->leftJoin('UserDriverLicenses', 'users.id', '=', 'UserDriverLicenses.user_id')
->where('UserAngelTypes.angeltype_id', '=', $angeltype['id'])
+ ->orderBy('users.name')
->get();
}