diff --git a/src/compiler/build_tables/parse_item.cc b/src/compiler/build_tables/parse_item.cc index 8c4dfe40..470200a6 100644 --- a/src/compiler/build_tables/parse_item.cc +++ b/src/compiler/build_tables/parse_item.cc @@ -25,14 +25,14 @@ bool ParseItem::operator==(const ParseItem &other) const { } bool ParseItem::operator<(const ParseItem &other) const { - if (variable_index < other.variable_index) - return true; - if (variable_index > other.variable_index) - return false; if (step_index < other.step_index) return true; if (step_index > other.step_index) return false; + if (variable_index < other.variable_index) + return true; + if (variable_index > other.variable_index) + return false; return production < other.production; }