protected function sortRulesByOrder(AbstractRule $a, AbstractRule $b) {
        if ($a->getOrder() === $b->getOrder()) {
            return 0;
        }

        return $a->getOrder() < $b->getOrder()
            ? -1
            : 1;
    }