public void Sort()
Public Sub Sort Dim instance As AFCollection instance.Sort()
public: virtual void Sort() sealed
abstract Sort : unit -> unit override Sort : unit -> unit
This method uses the default comparer for type T to determine the order of the items in the collection. If the item has a name, then the default comparer will normally sort the collection based upon the item's name.
This method uses Array.Sort, which uses the QuickSort algorithm. This implementation performs an unstable sort; that is, if two items are equal, their order might not be preserved. In contrast, a stable sort preserves the order of the items that are equal.
On average, this method is an O(n log n) operation, where n is Count; in the worst case it is an O(n^2) operation.