code: public void sortReverse(final Comparator<T> comparator) {
      this.sort(comparator);
      for (int i = 0; i < this.size / 2; i++) {
        final T temp = this.elements[i];
        this.elements[i] = this.elements[this.size - i - 1];
        this.elements[this.size - i - 1] = temp;
      }
    }
docs: Sorts this vector in reverse order.
  @param comparator the comparator