How to use OrderBy Descending in Lambda Expression in C#?

Below is a sample code snippet demonstrating how to use OrderBy Descending in Lambda Expression in C#.

How to use OrderBy Descending in Lambda Expression in C#?

using System;

using System.Collections.Generic;

using System.Data;

using System.Linq;

namespace AbundantCode

{

internal class Program

{

//How to use OrderBy Descending in Lambda Expression in C# ?

private static void Main(string[] args)

{

string[] Phrases = { "AbundantCode", "Website", "for", "Programmers" };

var result = Phrases.OrderByDescending(a => a)

.Select(a => a);

foreach (var item in result)

Console.WriteLine(item);

Console.ReadLine();

}

}

}
How to use OrderBy Descending in Lambda Expression in C#?