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

User Order

tafreehm

Well-known member
#1
Hello,
The code is taken from a sidebar widget which supposed to show user whos birtday is today.
PHP:
        $fetchOptions = array(
            'limit' => $widget['options']['limit'],
             'order' => 'message_count',
            'join' => XenForo_Model_User::FETCH_USER_PROFILE + XenForo_Model_User::FETCH_USER_OPTION,
        );
now the problem is, it shows user with 0 post first.. How can I change its order to descending ?
so the user with higher post will show first.

Thanks