Sorting Values in Array using C#

Introduction
 
This code snippet is sorting values in array using C#.
 
Code 
  1. using System;  
  2. using System.Collections;  
  3.   
  4. public class Program  
  5. {  
  6.     public static void Main()  
  7.     {  
  8.         int[] array = { 2, 11, 15, 1, 7, 99, 6, 85, 4 } ;  
  9.           
  10.         Array.Sort(array);//sorting array  
  11.           
  12.         foreach (var result in array)  
  13.         {  
  14.             Console.Write(result + " ");  
  15.         }  
  16.     }  
  17. }  
Output
 
1 2 4 6 7 11 15 85 99 
 
Demo : https://dotnetfiddle.net/8PusDB