fwr.cidr.version is never false or nil, so this only sorts by the cidr, potentially mixing IPv4 and IPv6 cidrs. I believe the intention here is to show all IPv4 addresses before all IPv6 addresses, so this changes the code to do that.
637 B
637 B