From d65595649dd8fcae4bf04cd5b7350bad68864ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 21 Mar 2015 20:37:42 +0100 Subject: [PATCH] Order followed users alphabetically in invitation form --- file/lib/data/user/UserAction.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/file/lib/data/user/UserAction.class.php b/file/lib/data/user/UserAction.class.php index 938dba0..fabf769 100644 --- a/file/lib/data/user/UserAction.class.php +++ b/file/lib/data/user/UserAction.class.php @@ -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();