xenforo - Icewind Staff Display Order

Blasteh

big tits
Apr 3, 2013
1,158
526
Hello,
Does anyone know how to change Icewind Staff's display order? Right now it's displaying by username, as in the picture below shows, J comes before T. I'm wanting it to order by the user's ID (my ID is 1, Jai's ID is 2) instead of the username itself. Even an EXTRA.CSS code will do really.

 

Blasteh

big tits
Apr 3, 2013
1,158
526
No, but sounds like it is in Icewind/Staff/Model/
Mind checking it out? I'm stumped. Much appreciated.


 
I'm guessing it's to due with this?
public function prepareUserOrderOptions(array &$fetchOptions, $defaultOrderSql = '')
{
$choices = array(
'username' => 'user.username'
);
return $this->getOrderByClause($choices, $fetchOptions, $defaultOrderSql);
}

If so, how would I properly change it?
 

Weasel

👄 I'd intercept me
Nov 25, 2011
4,142
2,468
Mind checking it out? I'm stumped. Much appreciated.


 
I'm guessing it's to due with this?
public function prepareUserOrderOptions(array &$fetchOptions, $defaultOrderSql = '')
{
$choices = array(
'username' => 'user.username'
);
return $this->getOrderByClause($choices, $fetchOptions, $defaultOrderSql);
}

If so, how would I properly change it?

In the pastebin code you posted, on line 14, change user.username to user.id
 

Users who are viewing this thread

Top