Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 committed Dec 2, 2024
1 parent 35cb184 commit d880126
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/builder/module_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ rule_module rule_module_builder::build()
const auto rverdict = right->get_verdict();
const auto lsource = left->get_source();
const auto rsource = right->get_source();
std::string_view const lkey = grouping_key_fn_(left);
std::string_view const rkey = grouping_key_fn_(right);
return lverdict > rverdict ||
(lverdict == rverdict && (source_precedence_fn_(lsource, rsource) ||
(lsource == rsource && lkey < rkey)));
(lverdict == rverdict &&
(source_precedence_fn_(lsource, rsource) ||
(lsource == rsource && grouping_key_fn_(left) < grouping_key_fn_(right))));
};

// Sort first
Expand Down

0 comments on commit d880126

Please sign in to comment.