Fix user sort. No longer crashes. Helps fix modlabca/nodebb-plugin-whoisin#1

I forgot to tell him to check the code first. Oops.
Merge pull request #8 from pitaj/master

Fix user sort. No longer crashes.