diff --git a/cql3/result_set.hh b/cql3/result_set.hh index 7e1038925e..8243fbb6ba 100644 --- a/cql3/result_set.hh +++ b/cql3/result_set.hh @@ -172,7 +172,7 @@ public: { cmp(row, row) } -> std::same_as; } void sort(const RowComparator& cmp) { - std::sort(_rows.begin(), _rows.end(), std::ref(cmp)); + std::sort(_rows.begin(), _rows.end(), cmp); } metadata& get_metadata();