Microsoft SDK for Java

sort

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

sort(Vector vector,Comparison comparison)
sort(Vector vector,Comparison comparison, int first, int size)

sort(Vector vector, Comparison comparison)

Sorts the specified Vector object using the specified Comparison object.

Syntax

static public void sort(Vector vector, Comparison comparison);

Parameters

vector The Vector object to be sorted.
comparison The Comparison object to use.

sort(Vector vector, Comparison comparison, int first, int size)

Sorts a subrange of the specified Vector object using the specified Comparison object.

Syntax

static public void sort(Vector vector, Comparison comparison, int first, int size);

Parameters

vector The Vector object to be sorted.
comparison The Comparison object to use.
first The index of the beginning element of the subrange to sort.
size The number of elements of the subrange to sort.

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