@Override
  public int compareTo(ServerAndLoad other) {
    int diff = this.load - other.load;
    return diff != 0 ? diff : this.sn.compareTo(other.getServerName());
  }
Data structure that holds servername and 'load'.
hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/ServerAndLoad.java