Skip to content

Commit

Permalink
remove sorted(result Multiset) from _substitute in order to make it w…
Browse files Browse the repository at this point in the history
…ork with SymPy objects
  • Loading branch information
Upabjojr committed Dec 19, 2020
1 parent 5cae3f2 commit d64469b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchpy/functions.py
Expand Up @@ -84,7 +84,7 @@ def _substitute(expression: Expression, substitution: Substitution) -> Tuple[Rep
if isinstance(result, (list, tuple)):
new_operands.extend(result)
elif isinstance(result, Multiset):
new_operands.extend(sorted(result))
new_operands.extend(result)
else:
new_operands.append(result)
if any_replaced:
Expand Down

0 comments on commit d64469b

Please sign in to comment.