Bug Fix
What was the issue?
If you tried to sort by status the users that were recently online would be at the bottom or at the top instead of inbetween the online and the offline users.
For more details you can also look into this utopian post.

What was the solution?
The sorting is done on the client side by the jQuery-TableSorter plugin.
To implement the correct behaviour I added a custom parser that maps from status text to number.
As you can see I implemented following logic:
- If the player is online I sort like the value is 0.
- If the player is offline I sort like the value is 999.
- If the player was recently online, I only take the numeric part of the text.
- That means for example "11 min" would be a value of 11.
- Then the values are sorted numerical resulting in the following correct behaviour:


Relevant Links
The images were reused with permission
Posted on Utopian.io - Rewarding Open Source Contributors