@Deprecated public static <T>void sort(T[] array,int size,Comparator<? super T> comparator){
  if (comparator == null) {
    Arrays.sort(array,0,size);
  }
 else {
    Arrays.sort(array,0,size,comparator);
  }
}

@ Deprecated public static < T > void sort ( T [ ] array , int size , Comparator < ? super T > comparator ) { if ( comparator == null ) { Arrays . sort ( array , 0 , size ) ; } else { Arrays . sort ( array , 0 , size , comparator ) ; } }
inline calls to appropriate arrays . sort ( ) method which now uses timsort by default since java 8 .
