public final SortMetrics sort(Object[] data) {
   values = data;
   curMetrics.init();
   doSort();
   return getMetrics();
 }
 public final SortMetrics getMetrics() {
   return curMetrics.clone();
 }