# Write a Python program to Numpy matrix.sort() 
 # import the important module in python
import numpy as np
             
# make matrix with numpy
gfg = np.matrix('[4, 1; 12, 3]')
             
# applying matrix.sort() method
gfg.sort()
   
print(gfg)