Moved all sorting parameters to a single sort function

Multiple sorts in a row did not conserve the previous ordering. By moving all the parameters to a single sort function, we should be able to get the desired results
Update client.js
fixed named list sorting

Final set of changes to fix the sorting of usernames in the main room
Porting over sorting fix from client.js
Sorting fix port from client.js take 2
Merge pull request #33 from herrozod/testing

Fix Sorting of Name List