NumPy > Sort array along axis

Name
Code
Output
array = numpy.random.randint(20, size=(2, 3))
print ("original array \n",array)
array.sort(axis=0)
print("sorted array axis 0 \n",array)
array.sort(axis=1)
print("sorted array axis 1 \n",array)
original array 
 [[16 11  7]
 [ 1 12 16]]
sorted array axis 0 
 [[ 1 11  7]
 [16 12 16]]
sorted array axis 1 
 [[ 1  7 11]
 [12 16 16]]