Sorts the elements of a collection in descending order.

Namespace:  C1.LiveLinq
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public static Ordering<T> OrderByDescending<T, TKey>(
	this IIndexedSource<T> source,
	Expression<Func<T, TKey>> keySelector
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function OrderByDescending(Of T, TKey) ( _
	source As IIndexedSource(Of T), _
	keySelector As Expression(Of Func(Of T, TKey)) _
) As Ordering(Of T)

Parameters

source
Type: C1.LiveLinq.Indexing..::..IIndexedSource<(Of <(<'T>)>)>
A collection of values to order.
keySelector
Type: System.Linq.Expressions..::..Expression<(Of <(<'Func<(Of <(<'T, TKey>)>)>>)>)>
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 IIndexedSource<(Of <(<'T>)>)> whose elements are sorted in descending order according to a key.

See Also