Fix user sort. No longer crashes. 

I forgot to tell you to check the code on that commit first. Sorry about that. This fixes it