Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / C1DataCollectionEx Class / SortAsync<T> Method
The data collection.
The filter path.
The sort direction.

In This Topic
    SortAsync<T> Method (C1DataCollectionEx)
    In This Topic
    Sorts the data collection according to the specified sort path and direction.
    Syntax
    'Declaration
     
    
    Public Shared Function SortAsync(Of T As Class)( _
       ByVal dataCollection As C1DataCollection(Of T), _
       ByVal sortPath As Expression(Of Func(Of T,Object)), _
       Optional ByVal sortDirection As SortDirection _
    ) As Task

    Parameters

    dataCollection
    The data collection.
    sortPath
    The filter path.
    sortDirection
    The sort direction.

    Type Parameters

    T
    See Also