diff --git a/cozo-core/src/fixed_rule/utilities/reorder_sort.rs b/cozo-core/src/fixed_rule/utilities/reorder_sort.rs index 066c8a1c..9faf13ac 100644 --- a/cozo-core/src/fixed_rule/utilities/reorder_sort.rs +++ b/cozo-core/src/fixed_rule/utilities/reorder_sort.rs @@ -109,7 +109,7 @@ impl FixedRule for ReorderSort { last = sorter; } - if count > take_plus_skip { + if take != 0 && count > take_plus_skip { break; }