QueryExtensions.SortBy(IQueryable<T>, String) QueryExtensions.SortBy(IQueryable<T>, String) QueryExtensions.SortBy(IQueryable<T>, String) QueryExtensions.SortBy(IQueryable<T>, String) Method

Definición

Especifica un criterio de ordenación.Specifies a sort order.

public:
generic <typename T>
 where T : class[System::Runtime::CompilerServices::Extension]
 static System::Linq::IQueryable<T> ^ SortBy(System::Linq::IQueryable<T> ^ source, System::String ^ sortExpression);
public static System.Linq.IQueryable<T> SortBy<T> (this System.Linq.IQueryable<T> source, string sortExpression) where T : class;
static member SortBy : System.Linq.IQueryable<'T (requires 'T : null)> * string -> System.Linq.IQueryable<'T (requires 'T : null)> (requires 'T : null)
<Extension()>
Public Function SortBy(Of T As Class) (source As IQueryable(Of T), sortExpression As String) As IQueryable(Of T)

Parámetros de tipo

T

Tipo genérico del objeto.The generic type of the object.

Parámetros

source
IQueryable<T> IQueryable<T> IQueryable<T> IQueryable<T>

Objeto que se va a ordenar.The object to sort.

sortExpression
String String String String

Expresión de ordenación.The sort expression.

Devoluciones

La versión ordenada del objeto source.The sorted version of the source object.

Se aplica a