How to sort a user list based on a user variable

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Sherife
Posts: 23
Joined: 31 Aug 2011, 09:03
Location: United Kingdom
Contact:

How to sort a user list based on a user variable

Postby Sherife » 13 Oct 2011, 13:37

So from my room extension, I want to re-arrange the getParentRoom().getUserList() based on a user variable.

Code: Select all

ArrayList<User> userList = ( ArrayList<User> ) getParentRoom().getUserList();

//what I was hoping for
userList.sort();



Any directions are appreciated.

Thanks,
Sherif

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 59 guests