Method Sort
Sort()
Sort the items of the list according to the default sorting order for the item type T, as defined by the C5.Comparer`1 class
Declaration
void Sort()
Exceptions
Type | Condition |
---|---|
NotComparableException | if T is not comparable |
Sort(Collections.Generic.IComparer<T>)
Sort the items of the list according to a specified sorting order.
The sorting does not perform duplicate elimination or identify items according to the comparer or itemequalityComparer. I.e. the list as an unsequenced collection with binary equality, will not change.
Declaration
void Sort(Collections.Generic.IComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IComparer<T> | comparer | The comparer defining the sorting order. |