| ISpecificationTOrderByTKey Method (ExpressionFuncT, TKey) | 
 Specifies the way the sequence must be sorted. It used a default sort order of ascending.
 
    Namespace: 
   Enkoni.Framework
    Assembly:
   Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
 Syntax
SyntaxISpecification<T> OrderBy<TKey>(
	Expression<Func<T, TKey>> keySelector
)
Function OrderBy(Of TKey) ( 
	keySelector As Expression(Of Func(Of T, TKey))
) As ISpecification(Of T)
generic<typename TKey>
ISpecification<T>^ OrderBy(
	Expression<Func<T, TKey>^>^ keySelector
)
abstract OrderBy : 
        keySelector : Expression<Func<'T, 'TKey>> -> ISpecification<'T> 
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncT, TKey
 The expression that points to the field that must be used to perform the sorting.
Type Parameters
- TKey
- The type of object that must be used to perform the sorting.
Return Value
Type: 
ISpecificationTThe specification with the sorting rules.
 See Also
See Also