pySortNet sorts IP addresses (IPv4 and IPv6) and hostnames given on standard input such that addresses and names are grouped in logical groups.