ComponentOne Xamarin.Android
SortAsync<T> Method (C1CollectionViewEx)


C1.CollectionView Assembly > C1.CollectionView Namespace > C1CollectionViewEx Class : SortAsync<T> Method
The collection view.
The filter path.
The sort direction.
Sorts the collection view according to the specified sort path and direction.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(C1.CollectionView.C1CollectionViewEx/d__0`1)> 
<ExtensionAttribute()> 
Public Shared Function SortAsync(Of T As Class)( _ 
   ByVal collectionView As C1CollectionView(Of T), _ 
   ByVal sortPath As Expression(Of Func(Of T,Object)), _ 
   Optional ByVal sortDirection As SortDirection _ 
) As Task
'Usage
 
Dim collectionView As C1CollectionView(Of T)
Dim sortPath As Expression(Of Func(Of T,Object))
Dim sortDirection As SortDirection
Dim value As Task
 
value = C1CollectionViewEx.SortAsync(Of T)(collectionView, sortPath, sortDirection)
[AsyncStateMachine(C1.CollectionView.C1CollectionViewEx/d__0`1)] 
[Extension()] 
public static Task SortAsync<T>( 
   C1CollectionView<T> collectionView, 
   Expression<Func<T,object>> sortPath, 
   SortDirection sortDirection 
) 
where T: class

Parameters

collectionView
The collection view.
sortPath
The filter path.
sortDirection
The sort direction.

Type Parameters

T
See Also

Reference

C1CollectionViewEx Class
C1CollectionViewEx Members