Gossamer
Active member
Hello! I'm attempting to output a list of users on a page and order them by user title. However, my list only ever seems to default to sorting by username. Is there a way to do this?
Here is my code:
Here is my code:
PHP:
// fetch characters for canon list
$userModel = $controller->getModelFromCache('XenForo_Model_User');
$response->params['users'] = $userModel->getUsers(array(
'secondary_group_ids' => 5,
'user_state' => 'valid'
), array(
'order' => 'user_title',
'join' => XenForo_Model_User::FETCH_USER_PROFILE
));