Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -98,8 +98,9 @@ |
99 | 99 | $query = array( |
100 | 100 | 'tables' => " $user $useIndex LEFT JOIN $user_groups ON user_id=ug_user |
101 | 101 | LEFT JOIN $ipblocks ON user_id=ipb_user AND ipb_auto=0 ", |
102 | | - 'fields' => array('user_name', |
103 | | - 'MAX(user_id) AS user_id', |
| 102 | + 'fields' => array( |
| 103 | + $this->creationSort ? 'MAX(user_name) AS user_name' : 'user_name', |
| 104 | + $this->creationSort ? 'user_id' : 'MAX(user_id) AS user_id', |
104 | 105 | 'MAX(user_editcount) AS edits', |
105 | 106 | 'COUNT(ug_group) AS numgroups', |
106 | 107 | 'MAX(ug_group) AS singlegroup', |