public static <T extends Comparable<? super T>>
	int[] sort(final BaseSeq<? extends T> array) {
		return sort(
			array, array.length(),
			(a, i, j) -> a.get(i).compareTo(a.get(j))
		);
	}
Sorting the given array by creating an index lookup array.

@see #sort(Object, int, Comparator)

@param <T> the array element type
@param array the array to sort
@return the <em>sorted</em> index lookup array
@throws NullPointerException if the array is {@code null}
jenetics/src/main/java/io/jenetics/util/ProxySorter.java