Extensions..::..OrderBy<(Of <(<'T>)>)> Method

Orders the by.

Namespace:  MichaelBrandonMorris.KingsportMillSafetyTraining.MvcGrid
Assembly:  MichaelBrandonMorris.KingsportMillSafetyTraining (in MichaelBrandonMorris.KingsportMillSafetyTraining.dll)

Syntax


internal static IList<T> OrderBy<T>(
	IEnumerable<T> enumerable,
	Func<T, Object> sortBy,
	SortDirection sortDirection
)
Friend Shared Function OrderBy(Of T) ( _
	enumerable As IEnumerable(Of T), _
	sortBy As Func(Of T, Object), _
	sortDirection As SortDirection _
) As IList(Of T)
internal:
generic<typename T>
static IList<T>^ OrderBy(
	IEnumerable<T>^ enumerable, 
	Func<T, Object^>^ sortBy, 
	SortDirection^ sortDirection
)

Type Parameters

T

Parameters

enumerable
Type: IEnumerable<(Of <(<'T>)>)>
The enumerable.
sortBy
Type: Func<(Of <(<'T, Object>)>)>
The sort by.
sortDirection
Type: SortDirection
The sort direction.

Return Value

IList<T>.

Exceptions


ExceptionCondition
ArgumentOutOfRangeException sortDirection - null