c# sort int descending code example
Example 1: string to int c#
int x = Int32.Parse("1234");
Example 2: order 3 integers in c#
if (a > c)
swap(a, c);
if (a > b)
swap(a, b);
//Now the smallest element is the 1st one. Just check the 2nd and 3rd
if (b > c)
swap(b, c);