Skip to content

Commit

Permalink
fix sorting of terms
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Dec 13, 2023
1 parent 8d479ba commit 24e9ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgringo/src/term.cc
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void IESolver::add(IE ie, bool ignoreIfFixed) {
std::sort(
terms.begin(), terms.end(),
[](auto const &a, auto const &b) {
return a.variable->name == b.variable->name;
return a.variable->name < b.variable->name;
});

// combine adjacent terms referring to the same variable
Expand Down

0 comments on commit 24e9ebb

Please sign in to comment.