Microsoft SDK for Java

List.sort

Sorts the entire list using the specified comparer.

Syntax

public void sort( IComparer comp )

public void sort( IComparer comp, int index, int count )

Parameters

comp

The IComparer object to use to compare items.

index

The index to start sorting from.

count

The number of items to sort.

Exceptions

WFCInvalidArgumentException thrown if either the count parameter or the index parameter is out of bounds.

See Also   ArraySorter.sort

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