Reversal of a List can be done using Reverse() method. It is independent of the alphabets. And is not a sort. It is just a reversal.
using System.Collections.Generic; public class MyApplication { public static void Main(string[] args) { var x = new List<string>(){"Mohan", "Kriti", "Salim"}; x.Reverse(); foreach (var data in x) { System.Console.WriteLine(data); } } }
So, in the above code we have created a List and initialised to the variable x.
var x = new List<string>(){"Mohan", "Kriti", "Salim"};
Below is how the values are positioned in the List,
Then we have used the Reverse() Method to reverse the elements of the List x.
x.Reverse();
And the List x gets sorted in reverse order with Salim as the first value, Mohan second and Kriti as the third.
And we get the below output.