Enumerable.OrderBy Method

Sorts the elements of a sequence in ascending order.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) Sorts the elements of a sequence in ascending order according to a key.
Public method Static member OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) Sorts the elements of a sequence in ascending order by using a specified comparer.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft