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