public static void heapSortNativeVector(edu.isi.stella.Stella_Object[] vector, int size, java.lang.reflect.Method predicate) {
    Stella.heapSortHeapify(vector, size, predicate);
    { int end = size - 1;
      Stella_Object aux = null;

      while (end > 0) {
        aux = vector[0];
        vector[0] = (vector[end]);
        vector[end] = aux;
        end = end - 1;
        Stella.heapSortSiftDown(vector, 0, end, predicate);
      }
    }
  }