[]
        
(Showing Draft Content)

C1.DataCollection.C1DataCollectionEx.SortAsync

SortAsync Method

SortAsync<T>(C1DataCollection<T>, Expression<Func<T, object>>, SortDirection)

Sorts the data collection according to the specified sort path and direction.

Declaration
public static Task SortAsync<T>(this C1DataCollection<T> dataCollection, Expression<Func<T, object>> sortPath, SortDirection sortDirection = SortDirection.Ascending) where T : class
Parameters
Type Name Description
C1DataCollection<T> dataCollection

The data collection.

Expression<Func<T, object>> sortPath

The filter path.

SortDirection sortDirection

The sort direction.

Returns
Type Description
Task
Type Parameters
Name Description
T