Skip to content

Commit 06476f4

Browse files
committed
Fix
1 parent e89bec0 commit 06476f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comparison.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ function compare(
321321
m2::AbstractMonomial,
322322
::Type{O},
323323
) where {O<:AbstractMonomialOrdering}
324-
return cmp(m1, m2)
324+
s1, s2 = promote_variables(m1, m2)
325+
return cmp(O(), exponents(s1), exponents(s2))
325326
end
326327

327328
# Implement this to make coefficients be compared with terms.

0 commit comments

Comments
 (0)