How can the Array elements be sorted in descending order in c# dotnet
Loading
How can the Array elements be sorted in descending order in c# dotnet
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Jul 9, 2025, 3:37 AM
Hello Kiran,
There are multiple ways we can sort an Array,
Array.Sort()and then ReverseJainil PatelPosted Jul 8, 2025, 4:06 AM
To sort an array in descending order in C# (.NET), you can use the built-in
Array.Sort()method along withArray.Reverse()for a more concise approach.Using
Array.Sort()andArray.Reverse()Rajanikant HawaldarPosted Jul 6, 2025, 6:13 AM
Yes using Array.Sort() and then call Array. Reverse() method