[]
Sorts the data collection according to the specified sort path and direction.
public static Task SortAsync<T>(this C1DataCollection<T> dataCollection, Expression<Func<T, object>> sortPath, SortDirection sortDirection = SortDirection.Ascending) where T : class
Public Shared Function SortAsync(Of T As Class)(dataCollection As C1DataCollection(Of T), sortPath As Expression(Of Func(Of T, Object)), Optional sortDirection As SortDirection = SortDirection.Ascending) As Task
| Type | Name | Description |
|---|---|---|
| C1DataCollection<T> | dataCollection | The data collection. |
| Expression<Func<T, object>> | sortPath | The filter path. |
| SortDirection | sortDirection | The sort direction. |
| Type | Description |
|---|---|
| Task |
| Name | Description |
|---|---|
| T |