Method Sort
Sort()
Sorts the elements in this collection. Uses the default comparer.
public virtual void Sort()
Sort(IComparer<T>)
Sorts the elements in this collection. Uses the provided comparer.
public virtual void Sort(IComparer<T> comparer)
Parameters
comparer
IComparer<T>
Sort(int, int, IComparer<T>?)
Sorts the elements in a section of this collection. The sort compares the elements to each other using the given IComparer interface. If comparer is null, the elements are compared to each other using the IComparable interface, which in that case must be implemented by all elements of the list.
public virtual void Sort(int index, int count, IComparer<T>? comparer)
Parameters
Sort(Comparison<T>)
Sorts the elements in the entire collection using the specified comparison.
public virtual void Sort(Comparison<T> comparison)
Parameters
comparison
Comparison<T>