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

I forgot to tell him to check the code first. Oops.