title: How to sort array numbers using Array.Sort
body: <p>I've got a fair idea on how it works, I've seen other examples on how to use it just can't figure out how to apply it to my code.</p>
  
  <pre><code>using System;
  
  namespace ArrayRandomNumbers
  {
      class RandomNumbers
      {
          public static void Main()
          {
              int[] num = new int[1000];
              Random rnd = new Random();
  
              for (int i = 0; i &lt; 1000; i++)
              {        
                  num[i] = rnd.Next(1000);
  
                  Console.WriteLine(num[i]);
                  Array.Sort(num); //Doesn't do anything here
                  //Console.WriteLine(num[i] = rnd.Next(1000));
              }          
              Console.ReadLine();
          }
      }
  }
  </code></pre>