To sort a numpy array you can use the numpy ndarray function sort() which sorts the array in-place. You can also use the global numpy.sort() function.