Java.Util.Arrays.Sort Method
Sorts the specified range in the array in ascending natural order.

Syntax

[Android.Runtime.Register("sort", "([Ljava/lang/Object;II)V", "")]
public static void Sort (Java.Lang.Object[] array, int start, int end)

Parameters

array
the Object array to be sorted.
start
the start index to sort.
end
the last + 1 index to sort.

Exceptions

TypeReason
Java.Lang.ClassCastExceptionif any element does not implement Comparable, or if compareTo throws for any pair of elements.
Java.Lang.IllegalArgumentExceptionif start > end.
Java.Lang.ArrayIndexOutOfBoundsExceptionif start or end > array.length.

Remarks

Sorts the specified range in the array in ascending natural order.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1