code: @Override
    public int compareTo(NodeInfo o) {
      if (o == null) {
        return 1;
      } else {
        return this.getHost().compareTo(o.getHost());
      }
    }
docs: Compare {@link NodeInfo} by lexicographical order of their associated host.
  
  @param o the comparison term
  @return a positive value if {@code this.getHost} is lexicographically "bigger" than
  {@code o.getHost}, 0 if the hosts are equal, a negative value otherwise.