thread->oldest = 0;
thread->newest = 0;
- notmuch_query_set_sort (thread_id_query, sort);
+ notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_OLDEST_FIRST);
for (messages = notmuch_query_search_messages (thread_id_query);
notmuch_messages_valid (messages);
if (unlikely (matched_query == NULL))
return NULL;
- notmuch_query_set_sort (matched_query, sort);
-
for (messages = notmuch_query_search_messages (matched_query);
notmuch_messages_valid (messages);
notmuch_messages_move_to_next (messages))