'Sort the indices of this matrix *in place*'

def sort_indices(self):

    if (not self.has_sorted_indices):
        _sparsetools.csr_sort_indices((len(self.indptr) - 1), self.indptr, self.indices, self.data)
        self.has_sorted_indices = True
