@Override
  public void sort(Comparator<? super E> comparator) {
    if (mySize >= 2) {
      //noinspection unchecked
      Arrays.sort(asArray(), 0, mySize, (Comparator<Object>)comparator);
    }
  }
@Override
  public void sort(Comparator<? super E> comparator)