@Override
    public int compare(HiveKey o1, HiveKey o2) {
      return -o1.compareTo(o2);
    }
Compare the buffers in serialized form.
ql/src/test/org/apache/hadoop/hive/ql/exec/tez/TestTezTotalOrderPartitioner.java