code: public static <T> void bucketSort(final T[] a, final int fromIndex, final int toIndex, final Comparator<? super T> cmp) {
          Array.bucketSort(a, fromIndex, toIndex, cmp);
      }
docs: Note: All the objects with same value will be replaced with first element with the same value.
  
  @param a
  @param fromIndex
  @param toIndex
  @param cmp