Method OrderBy
| Improve this Doc View SourceOrderBy(Column, SortDirection)
Constructs column comparer to sort DataRow.
Declaration
public static IColumnComparer OrderBy(Column column, SortDirection direction = SortDirection.Ascending)
Parameters
Type | Name | Description |
---|---|---|
Column | column | The column to sort DataRow. |
SortDirection | direction | The sort direction. |
Returns
Type | Description |
---|---|
IColumnComparer | The column comparer. |
OrderBy<T>(Column<T>, SortDirection, IComparer<T>)
Constructs column comparer to sort DataRow.
Declaration
public static IColumnComparer OrderBy<T>(Column<T> column, SortDirection direction = SortDirection.Ascending, IComparer<T> valueComparer = null)
Parameters
Type | Name | Description |
---|---|---|
Column<T> | column | The column to sort DataRow. |
SortDirection | direction | The sort direction. |
System.Collections.Generic.IComparer<T> | valueComparer | The value comparer. |
Returns
Type | Description |
---|---|
IColumnComparer | The column comparer. |
Type Parameters
Name | Description |
---|---|
T | The data type of the column. |