Click or drag to resize
QueryableExtensionsOrderBy Method (IQueryable, LambdaExpression)
Sorts the elements of a sequence in ascending order according to a key.

Namespace: Kettic.AspNet.Data.Extensions
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public static IQueryable OrderBy(
	this IQueryable source,
	LambdaExpression keySelector
)

Parameters

source
Type: System.LinqIQueryable
A sequence of values to order.
keySelector
Type: System.Linq.ExpressionsLambdaExpression
A function to extract a key from an element.

Return Value

Type: IQueryable
An IQueryable whose elements are sorted according to a key.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable. 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