aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-07-05 21:36:20 -0400
committercash <cash.costello@gmail.com>2013-07-05 21:36:20 -0400
commit25929426871cc09d81b0612b239e9ea025bc808c (patch)
tree328d106c31d1815a69ee9a72842ce913eeb3b0b7
parentc301e22224db8b064c1de68799b8e49cc1259e2e (diff)
downloadelgg-25929426871cc09d81b0612b239e9ea025bc808c.tar.gz
elgg-25929426871cc09d81b0612b239e9ea025bc808c.tar.bz2
Fixes #5613 group member list alphabetical
-rw-r--r--mod/groups/lib/groups.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/groups/lib/groups.php b/mod/groups/lib/groups.php
index e5b047eba..77d7c09cc 100644
--- a/mod/groups/lib/groups.php
+++ b/mod/groups/lib/groups.php
@@ -366,12 +366,15 @@ function groups_handle_members_page($guid) {
elgg_push_breadcrumb($group->name, $group->getURL());
elgg_push_breadcrumb(elgg_echo('groups:members'));
+ $db_prefix = elgg_get_config('dbprefix');
$content = elgg_list_entities_from_relationship(array(
'relationship' => 'member',
'relationship_guid' => $group->guid,
'inverse_relationship' => true,
'type' => 'user',
'limit' => 20,
+ 'joins' => array("JOIN {$db_prefix}users_entity u ON e.guid=u.guid"),
+ 'order_by' => 'u.name ASC',
));
$params = array(