Microsoft SDK for Java

sort

The sort method of the ArraySort Class contains the following signatures:

sort(Object array[], Comparison comparison)
sort(Object array[], Comparison comparison, int first, int size)

sort(Object array[], Comparison comparison)

Sorts the specified Object array using a Comparison object.

Syntax

static public void sort(Object array[], Comparison comparison);

Parameters

array The Object array to sort.
comparison The Comparison object to use.

sort(Object array[], Comparison comparison, int first, int size)

Sorts a subrange of the specified Object array using a Comparison object.

Syntax

static public void sort(Object array[], Comparison comparison, int first,int size);

Parameters

array The Object array to sort.
comparison The Comparison to use.
first The beginning element of the subrange.
size The number of elements in the subrange.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.