ComponentOne Data Source for Entity Framework
C1.LiveLinq Namespace / IndexedQueryExtensions Class / OrderByDescending<T,TKey> Method
The type of the elements of source.
The type of the key returned by keySelector.
A collection of values to order.
A function to extract a key from an element.

In This Topic
    OrderByDescending<T,TKey> Method (IndexedQueryExtensions)
    In This Topic
    Sorts the elements of a collection in descending order.
    Syntax
    'Declaration
     
    
    Public Shared Function OrderByDescending
        (Of T,TKey)( _
       ByVal source As IIndexedSource(Of T), _
       ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of T,TKey)) _
    ) As Ordering(Of T)
    public static Ordering<T> OrderByDescending<T,TKey>( 
       IIndexedSource<T> source,
       System.Linq.Expressions.Expression<Func<T,TKey>> keySelector
    )

    Parameters

    source
    A collection of values to order.
    keySelector
    A function to extract a key from an element.

    Type Parameters

    T
    The type of the elements of source.
    TKey
    The type of the key returned by keySelector.

    Return Value

    An C1.LiveLinq.Indexing.IIndexedSource<T> whose elements are sorted in descending order according to a key.
    See Also