public final class NameServerComparator
implements java.util.Comparator<java.net.InetSocketAddress>, java.io.Serializable
Special Comparator implementation to sort the nameservers to use when follow redirects.
This implementation follows all the semantics listed in the
with the limitation that InetSocketAddress.equals(Object) will not result in the same return value as
compare(InetSocketAddress, InetSocketAddress). This is completely fine as this should only be used
to sort Lists.