IP addresses can be sorted with `sort -V`. (It's the option for version numbers.)