sort based on column 2 np.array code example Example: how to sort values in numpy by one column sorted_array = an_array[numpy.argsort(an_array[:, 1])]