diff --git a/src/results.cpp b/src/results.cpp index 91a4cc22..ca6ae2a3 100644 --- a/src/results.cpp +++ b/src/results.cpp @@ -190,9 +190,6 @@ size_t Results::index_of(size_t row_ndx) case Mode::Table: return row_ndx; case Mode::Query: - if (!m_sort) - return m_query.count(row_ndx, row_ndx + 1) ? m_query.count(0, row_ndx) : not_found; - REALM_FALLTHROUGH; case Mode::TableView: update_tableview(); return m_table_view.find_by_source_ndx(row_ndx);