Permutation: nnz, then first index, then stable