diff --git a/sparse/_common.py b/sparse/_common.py index 6073798b..73167a76 100644 --- a/sparse/_common.py +++ b/sparse/_common.py @@ -724,7 +724,11 @@ def _dot_csr_csr( sums[temp] = 0 indptr[i + 1] = nnz - return data, indices, indptr + + ordered_data = data[::-1] + ordered_indices = indices[::-1] + + return ordered_data, ordered_indices, indptr return _dot_csr_csr