Check out example codes for "order 3 integers in c#". It will help you in understanding the concepts better.

Code Example 1

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);

Learn ReactJs, React Native from akashmittal.com