Here (and in the corresponding rmul!/lmul!)
https://github.com/JuliaLang/julia/blob/58c0ed57dc796a9bb0759ce49781d97b8474eee3/stdlib/SparseArrays/src/linalg.jl#L1165-L1192
we assume that multiplication of the eltypes of D and A is commutative, whereas we do care about the order of multiplication here:
https://github.com/JuliaLang/julia/blob/58c0ed57dc796a9bb0759ce49781d97b8474eee3/stdlib/SparseArrays/src/linalg.jl#L1194-L1218
I don't have a use/test case for matrix multiplication with non-commutative eltypes, so somebody should tell if there is an issue here (with an easy fix). @Jutho ?