add sorting criteria to user model