4.4BSD/usr/src/contrib/bind-4.9/contrib/dnsparse/sorthosts

#!/bin/sh
# takes /etc/hosts-type input & sorts it by Internet number
# works only on stdin
exec sort -n -t. +0 -1 +1 -2 +2 -3 +3 -4