[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.View-1.OrderBy

OrderBy Method

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

Sorts the elements of a view in ascending order.

Declaration
public OrderedView<T> OrderBy<TKey>(Expression<Func<T, TKey>> keySelector)
Parameters
Type Name Description
Expression<Func<T, TKey>> keySelector

A function to extract a key from an element.

Returns
Type Description
OrderedView<T>

A view whose elements are sorted according to a key.

Type Parameters
Name Description
TKey

The type of the key returned by keySelector.