code: @Override
    public int compareTo(RepairDigramRecord o) {
      if (this.freq > o.freq) {
        return 1;
      }
      else if (this.freq < o.freq) {
        return -1;
      }
      return 0;
    }
docs: A comparator built upon occurrence frequency only.