public static void sortDescending(double[] array, int fromIndex, int toIndex) {
    checkNotNull(array);
    checkPositionIndexes(fromIndex, toIndex, array.length);
    Arrays.sort(array, fromIndex, toIndex);
    reverse(array, fromIndex, toIndex);
  }
public static void sortDescending(double[] array, int fromIndex, int toIndex) {
    checkNotNull(array);
    checkPositionIndexes(fromIndex, toIndex, array.length);
    Arrays.sort(array, fromIndex, toIndex);
    reverse(array, fromIndex, toIndex);
  }
public static void sortDescending ( double [ ] array , int fromIndex , int toIndex ) { checkNotNull ( array ) ; checkPositionIndexes ( fromIndex , toIndex , array . length ) ; Arrays . sort ( array , fromIndex , toIndex ) ; reverse ( array , fromIndex , toIndex ) ; }
Sorts the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
exclusive in descending order.

<p>Note that this method uses the total order imposed by {@link Double#compare}, which treats
all NaN values as equal and 0.0 as greater than -0.0.

@since 23.1
Sorts the elements of { @code array } between { @code fromIndex } inclusive and { @code toIndex } exclusive in descending order .