does order matter when two different derivations are to be made for ambiguous grammar
You are deriving different strings. The definition of ambiguity asks for the very same string.

In this case, that they "mean the same thing" in algebra, due to the commutative law for multiplication, is completely off topic.