Bash sort IPs naturally

sort -t . -k 3,3n -k 4,4n IPs