Fixed error created when a hostname is used in place of an IP address with the ip_sort() function.