[]
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
| 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 |