modify stable_sort_neg