SciPy

scipy.sparse.csc_matrix.sort_indices

csc_matrix.sort_indices()[source]

Sort the indices of this matrix in place