OrderByDescending Method

Enumerable.OrderByDescending Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Sorts the elements of a sequence in descending order.

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

  NameDescription
Public method Static member OrderByDescending<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>) Sorts the elements of a sequence in descending order according to a key.
Public method Static member OrderByDescending<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>) Sorts the elements of a sequence in descending order by using a specified comparer.
Top

Show:
© 2017 Microsoft