Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

LINQ OrderBy Descending Operator

In LINQ, OrderBy Descending Operator is used to sort the list/collection of items in descending order.

Syntax of LINQ OrderByDescending operator

The syntax of OrdrByDescending Operator in LINQ to sort the list of item/collection in descending order is:

C# Code

LINQ OrderByDescending Operator Example

Here is the example of using the LINQ OrderByDescending sorting operator to sort the list of item/collection in descending order is:

C# Code

Here is the result of the above code in descending order is:

OUTPUT:

LINQ OrderBy Descending Operator





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA