code: @Override
    public int compareTo(ShortWritable o) {
      short thisValue = this.value;
      short thatValue = (o).value;
      return (thisValue < thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
    }
docs: Compares two ShortWritable.