def serialize(self):
        if not self.field:
            raise InvalidSortOrder('sort order must contain field name')

        return {self.field: self.serialize_order_params()}
Timer.parse_option: negative value for duration option.
dataset/ETHPy150Open aparo/pyes/pyes/sort.py/SortOrder.serialize--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/plugin/modules/test_timer.py/TestTimer.testNegDuration__parse_option