add sort_indices function-sig tests