diff --git a/src/object-store/results.cpp b/src/object-store/results.cpp index 623b8c6b..b2a63789 100644 --- a/src/object-store/results.cpp +++ b/src/object-store/results.cpp @@ -41,9 +41,9 @@ Results::Results(SharedRealm r, const ObjectSchema &o, Table& table) Results& Results::operator=(Results const& r) { m_realm = r.m_realm; - m_query = r.get_query(); m_table = r.m_table; - m_sort = r.get_sort(); + m_sort = r.m_sort; + m_query = r.get_query(); m_mode = Mode::Query; const_cast(object_schema) = r.object_schema; return *this;