Here is my solution with arrays and the Sort method of the Array Class:
using System;
class SortingNumbers
{
static void Main()
{
int n = int.Parse(Console.ReadLine());
int[] arrayNumbers = new int[n];
for (int i = 0; i < n; i++)
{
arrayNumbers[i] = int.Parse(Console.ReadLine());
}
Array.Sort(arrayNumbers);
foreach (var VARIABLE in arrayNumbers)
{
Console.WriteLine(VARIABLE);
}
}
}