Added way to sort user repositories

I missed the option to sort a  user repository. Updated it the User.php class