Method Sort
Sort<TKey>(Func<T, TKey>, ListSortDirection)
Declaration
public void Sort<TKey>(Func<T, TKey> keySelector, ListSortDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T, TKey> | keySelector | |
| ListSortDirection | direction |
Type Parameters
| Name | Description |
|---|---|
| TKey |
Sort<TKey>(Func<T, TKey>, IComparer<TKey>)
Declaration
public void Sort<TKey>(Func<T, TKey> keySelector, IComparer<TKey> comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<T, TKey> | keySelector | |
| IComparer<TKey> | comparer |
Type Parameters
| Name | Description |
|---|---|
| TKey |