Sorts the elements in the entire ArrayList using the IComparable implementation of each element.
[Visual Basic] Overloads Overridable Public Sub Sort() [C#] public virtual void Sort(); [C++] public: virtual void Sort(); [JScript] public function Sort();
None.
Exception Type | Condition |
---|---|
NotSupportedException | The ArrayList is read-only. |
This method can be overridden by a derived class.
This method uses Sort to sort the elements.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.Sort Overload List