added sorting to user and admin pages through method in UsersHelper module