A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://morelinq.github.io/3.0/ref/api/html/M_MoreLinq_Extensions_OrderByExtension_OrderBy__2.htm below:

OrderByExtensionOrderByT, TKey Method (IEnumerableT, FuncT, TKey, OrderByDirection)

OrderByExtensionOrderByT, TKey Method (IEnumerableT, FuncT, TKey, OrderByDirection)

Sorts the elements of a sequence in a particular direction (ascending, descending) according to a key

Namespace:  MoreLinq.Extensions
Assembly:

MoreLinq (in MoreLinq.dll) Version: 3.0.0

Syntax
public static IOrderedEnumerable<T> OrderBy<T, TKey>(
	this IEnumerable<T> source,
	Func<T, TKey> keySelector,
	OrderByDirection direction
)
<ExtensionAttribute>
Public Shared Function OrderBy(Of T, TKey) ( 
	source As IEnumerable(Of T),
	keySelector As Func(Of T, TKey),
	direction As OrderByDirection
) As IOrderedEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T, typename TKey>
static IOrderedEnumerable<T>^ OrderBy(
	IEnumerable<T>^ source, 
	Func<T, TKey>^ keySelector, 
	OrderByDirection direction
)
[<ExtensionAttribute>]
static member OrderBy : 
        source : IEnumerable<'T> * 
        keySelector : Func<'T, 'TKey> * 
        direction : OrderByDirection -> IOrderedEnumerable<'T> 
Parameters
source
Type: System.Collections.GenericIEnumerableT
The sequence to order
keySelector
Type: SystemFuncT, TKey
A key selector function
direction
Type: MoreLinqOrderByDirection
A direction in which to order the elements (ascending, descending)
Type Parameters
T
The type of the elements in the source sequence
TKey
The type of the key used to order elements
Return Value

Type:

IOrderedEnumerableT

An ordered copy of the source sequence

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type

IEnumerableT

. When you use instance method syntax to call this method, omit the first parameter. For more information, see

Extension Methods (Visual Basic)

or

Extension Methods (C# Programming Guide)

.

See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4