pySortNet sorts IP addresses (IPv6 and IPv4) and hostnames given on standard input:
Usage: sortnet [OPTIONS]
Options:
-e, --center ............ center output
-l, --left-justify ...... left-justify output (default)
-r, --right-justify ..... right-justify output
-j, --justify ........... synonym for right-justify
-i, --reverse ........... print output in reverse
-u, --unique ............ output only the first of an equal run
or:
-h, --help .............. this brief help text
-v, --version ........... print version information
-c, --copyright ......... show copying policy
Product's homepage