@Override
  public int compareTo(ByteRange other) {
    return Bytes.compareTo(bytes, offset, length, other.getBytes(), other.getOffset(),
      other.getLength());
  }
Bitwise comparison of each byte in the array. Unsigned comparison, not paying attention to
java's signed bytes.
hbase-common/src/main/java/org/apache/hadoop/hbase/util/AbstractByteRange.java