ACEST PROGRAM ORDONEAZA UN MASIV

Sirul original :
Array ( [0] => 1 [1] => 4 [2] => 6 [3] => 2 [4] => -5 [5] => 3 [6] => 8 [7] => 10 [8] => 6 [9] => 7 )
ORDONAREA :

Array ( [0] => 1 [1] => 4 [2] => 2 [3] => -5 [4] => 3 [5] => 6 [6] => 8 [7] => 6 [8] => 7 [9] => 10 )
Array ( [0] => 1 [1] => 2 [2] => -5 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => 1 [1] => -5 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )
Sirul ordonat :
Array ( [0] => -5 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 6 [6] => 6 [7] => 7 [8] => 8 [9] => 10 )