1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Order followed users alphabetically in invitation form

This commit is contained in:
Tim Düsterhus 2015-03-21 20:37:42 +01:00
parent 87919dd881
commit d65595649d

View File

@ -63,6 +63,7 @@ public function validatePrepareInvite() {
public function prepareInvite() {
$followingList = new \wcf\data\user\follow\UserFollowingList();
$followingList->getConditionBuilder()->add('user_follow.userID = ?', array(WCF::getUser()->userID));
$followingList->sqlOrderBy = 'username ASC';
$followingList->readObjects();
$users = $followingList->getObjects();