NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArrayList.Sort (IComparer)

Sorts the elements in the entire ArrayList using the specified comparer.

[Visual Basic]
Overloads Overridable Public Sub Sort( _
   ByVal comparer As IComparer _
)
[C#]
public virtual void Sort(
   IComparer comparer
);
[C++]
public: virtual void Sort(
   IComparer* comparer
);
[JScript]
public function Sort(
   comparer : IComparer
);

Parameters

comparer
The IComparer implementation to use when comparing elements.

-or-

a null reference (in Visual Basic Nothing) to use the IComparable implementation of each element.

Return Value

None.

Exceptions

Exception Type Condition
NotSupportedException The ArrayList is read-only.

Remarks

This method can be overridden by a derived class.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.Sort Overload List