public int compare(T o1, T o2) {
          return o1.compareTo(o2);
        }
Returns a comparator based on whether the order is ascending or not.
Has a dummy parameter to make sure generics can infer the type correctly.
contrib/src/java/org/apache/hadoop/hive/contrib/udaf/example/UDAFExampleMaxMinNUtil.java