Sorting an array descendingly in C#

Rasheed K Mozaffar - Jul 17 '22 - - Dev Community

Hey yo!

Wanna learn a couple of easy C# array methods ?

Image description

This will sort a given array in an ascending order
Array.Sort(example array);

This will reverse the order of a given array
Array.Reverse(example array);

Hopefully you learned something new :)

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .