[]
        
(Showing Draft Content)

C1.LiveLinq.IndexedQueryExtensions.OrderBy

OrderBy Method

OrderBy<T, TKey>(IIndexedSource<T>, Expression<Func<T, TKey>>)

Sorts the elements of a collection in ascending order.

Declaration
public static Ordering<T> OrderBy<T, TKey>(this IIndexedSource<T> source, Expression<Func<T, TKey>> keySelector)
Parameters
Type Name Description
IIndexedSource<T> source

A collection of values to order.

Expression<Func<T, TKey>> keySelector

A function to extract a key from an element.

Returns
Type Description
Ordering<T>

An IIndexedSource<T> whose elements are sorted according to a key.

Type Parameters
Name Description
T

The type of the elements of source.

TKey

The type of the key returned by keySelector.