scipy.sparse.csc_matrix.ensure_sorted_indices

csc_matrix.ensure_sorted_indices(inplace=False)

Return a copy of this matrix where the column indices are sorted

This Page