ListExtensions..::..OrderBy<(Of <(<'TSource, TKey>)>)> Method

Orders the by.

Namespace:  MichaelBrandonMorris.Extensions.CollectionExtensions
Assembly:  MichaelBrandonMorris.Extensions.CollectionExtensions (in MichaelBrandonMorris.Extensions.CollectionExtensions.dll)

Syntax


public static IList<TSource> OrderBy<TSource, TKey>(
	IList<TSource> source,
	Func<TSource, TKey> keySelector,
	IComparer<TKey> comparer
)
Public Shared Function OrderBy(Of TSource, TKey) ( _
	source As IList(Of TSource), _
	keySelector As Func(Of TSource, TKey), _
	comparer As IComparer(Of TKey) _
) As IList(Of TSource)
public:
generic<typename TSource, typename TKey>
static IList<TSource>^ OrderBy(
	IList<TSource>^ source, 
	Func<TSource, TKey>^ keySelector, 
	IComparer<TKey>^ comparer
)

Type Parameters

TSource
The type of the t source.
TKey
The type of the t key.

Parameters

source
Type: IList<(Of <(<'TSource>)>)>
The source.
keySelector
Type: Func<(Of <(<'TSource, TKey>)>)>
The key selector.
comparer
Type: IComparer<(Of <(<'TKey>)>)>
The comparer.

Return Value

IList<TSource>.