compareTo
Total ordering over addresses matching address::operator<: IPv4 sorts before IPv6 (fewer bytes first), and within a family the comparison is the unsigned lexicographic order of the network-byte-order bytes. This is the ordering PeerList keeps its peer vector in.