refactored to sort users by name with default_scope