• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How to change the default sorting of the Members list?

Bellinis

Active member
#3
That's disappointing :(
In vb you could simply change the URL to something like .members/list/?order=desc&sort=joindate&pp=30

Hopefully it will be possible in the near future though! :)
 
R

ragtek

Guest
#4
How can I change the default sorting of the Members list?
Right now it sorts alphabetically, but I'd like to see it sorted by registration date (newest first).
THen you would need to extend the index action in the member controller

relevant part:

PHP:
// users for the member list
		$users = $userModel->getUsers($criteria, array(
			'join' => XenForo_Model_User::FETCH_USER_FULL,
			'perPage' => $usersPerPage,
			'page' => $page
should be
PHP:
// users for the member list
		$users = $userModel->getUsers($criteria, array(
			'join' => XenForo_Model_User::FETCH_USER_FULL,
			'perPage' => $usersPerPage,
			'page' => $page,
                        'order' => 'register_date'