better sort (type+name), if ip addr given as the name, store the ip2long result to have a real ip sorting