It is used to return a copy of an array sorted along the first axis. It is same as numpy.sort() along the axis=0.Syntax: numpy.msort(a)Example: a= np.array([30,10,20]) np.msort(a)Output: array([10, 20, 30])Related ContentNumPy TutorialNumPy: Sorting Arrays Using sort()NumPy: Sorting Arrays Using lexsort()TagsPython NumPyLog in or register to post comments