This is using a slow Python sort, better used `np.sort`