Sorts users on the index page