code: @Deprecated
      public static <T> void sort(T[] array, int size, Comparator<? super T> comparator)
      {
          if (comparator == null)
          {
              Arrays.sort(array, 0, size); // handles case size < 2 in Java 8 ComparableTimSort
          }
          else
          {
              Arrays.sort(array, 0, size, comparator); // handles case size < 2 in Java 8 TimSort
          }
      }
docs: Inline calls to appropriate Arrays.sort() method which now uses TimSort by default since Java 8.
  
  @deprecated in 7.0. Use {@link Arrays#sort(Object[], int, int)} or {@link Arrays#sort(Object[], int, int, Comparator)} instead.