elif selfsrc is not None and othersrc is not None:
o = selfsrc.ord(othersrc)
- if o == ORD_LESS:
- return True
- return [a for a in self.action if type(a) != IpRule] < [b for b in other.action if type(b) != IpRule]
+ if o == ORD_EQUAL:
+ return [a for a in self.action if type(a) != IpRule] < [b for b in other.action if type(b) != IpRule]
+ return o == ORD_LESS
def maybe_join(self, neighbor):
if self.ty == RuleAction.CONDITIONS and neighbor.ty == RuleAction.CONDITIONS: