Queryable.OrderBy Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sorts the elements of a sequence in ascending order.

Namespace:   System.Linq
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticOrderBy<TSource, TKey>(IQueryable<TSource>, Expression<Func<TSource, TKey>>)

Sorts the elements of a sequence in ascending order according to a key.

System_CAPS_pubmethodSystem_CAPS_staticOrderBy<TSource, TKey>(IQueryable<TSource>, Expression<Func<TSource, TKey>>, IComparer<TKey>)

Sorts the elements of a sequence in ascending order by using a specified comparer.

Return to top
Show: