in reply to How to sort IP addresses

I think sort::naturally would take care of you.

Caution: Contents may have been coded under pressure.