public void ascendingOrder()
{
    // helper class
    double temp = 0;
    for (int j = 0; j < numbers.Length; j++)
    {
        for (int i = 0; i < numbers.Length - 1; i++)
        {
            if (numbers[i] > numbers[i + 1])
            {
                temp = numbers[i];
                numbers[i] = numbers[i + 1];
                numbers[i + 1] = temp;
            }
        }
    }
}
i need the code to sort the columns first and then sort the rows like the following example!
input :
n=3
2 2 1 
3 53 4 
32 5 3 
output:
1 2 2 
3 3 54 
4 32 53