Program.cs
 

using System;

namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      // Sort a string
      string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
      Array.Sort(cars);
      foreach (string i in cars)
      {
        Console.WriteLine(i);
      }    
      
      // Sort an int
      int[] myNumbers = {5, 1, 8, 9};
      Array.Sort(myNumbers);
      foreach (int i in myNumbers)
      {
        Console.WriteLine(i);
      }
    }
  }
}

Result:
BMW
Ford
Mazda
Volvo
1
5
8
9