def validate(self, group):
        """
        Validates this order

        The argument determines which order validators are called:

        - ``Order.VALIDATE_BASE``
        - ``Order.VALIDATE_CART``
        - ``Order.VALIDATE_CHECKOUT``
        - ``Order.VALIDATE_ALL``
        """

        for g in sorted(g for g in self.VALIDATORS.keys() if group <= g):
            for validator in self.VALIDATORS[g]:
                validator(self)
dataset/ETHPy150Open matthiask/plata/plata/shop/models.py/Order.validate/swapped operands of `<=`