def __lt__(self, other):
        if self._version != other._version:
            raise TypeError('%s and %s are not of the same version' % (
                             self, other))
        if not isinstance(other, _BaseNetwork):
            raise TypeError('%s and %s are not of the same type' % (
                             self, other))
        if self.network_address != other.network_address:
            return self.network_address < other.network_address
        if self.netmask != other.netmask:
            return other.netmask < self.netmask
        return False
dataset/ETHPy150Open saltstack/salt/salt/ext/ipaddress.py/_BaseNetwork.__lt__/swapped operands of `<`