QueryableExtensionsSort Method |
Sorts the elements of a sequence using the specified sort descriptors.
Namespace: Kettic.AspNet.Data.ExtensionsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic static IQueryable Sort(
this IQueryable source,
IEnumerable<SortDescriptor> sortDescriptors
)
<ExtensionAttribute>
Public Shared Function Sort (
source As IQueryable,
sortDescriptors As IEnumerable(Of SortDescriptor)
) As IQueryable
public:
[ExtensionAttribute]
static IQueryable^ Sort(
IQueryable^ source,
IEnumerable<SortDescriptor^>^ sortDescriptors
)
static member Sort :
source : IQueryable *
sortDescriptors : IEnumerable<SortDescriptor> -> IQueryable
Parameters
- source
- Type: System.LinqIQueryable
A sequence of values to sort. - sortDescriptors
- Type: System.Collections.GenericIEnumerableSortDescriptor
The sort descriptors used for sorting.
Return Value
Type:
IQueryable
An
IQueryable whose elements are sorted according to a
sortDescriptors.
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