I have a array of int which I have to sort by descending.
Since I did not find any method to sort the array in descending order.Currently I am sorting the array in
Sure, You can customize the sort.
You need to give the Sort() a delegate to a comparison method which it will use to sort.
Using an anonymous method:
Array.Sort( array,
delegate(int a, int b)
{
return b - a; //Normal compare is a-b
});
Read more about it:
Sorting arrays
MSDN - Array.Sort Method (T[], Comparison)