davidfowl/JabbR — pull request #742 by alfhenrik (2013-03-26 12:06:59+00:00)
Title: Sort user list, split the users into active/idle then sort each group separately

Sending another attempt at sorting the userlist by status and name for review.
I'm not sure of the efficiency of this script when lots of activity is going on but let me know your concerns and I will attempt to justify/rectify them.

I created a JsFiddle to attempt to prove that it works.

http://jsfiddle.net/n2gNC/10/

Uncomment the two calls to sortList and then click Run and wait for the list to be sorted (takes a little while)

Then you can click a user in the list, if the user is active they will be marked as idle and vice versa.