sort rows in numpy array code example Example: numpy sort row by sorted_array = an_array[numpy.argsort(an_array[:, 1])]