public int CompareTo(PeerAddress other) { // the ID determines if two peers are equal, the address does not matter return(PeerId.CompareTo(other.PeerId)); }