From f7b49d658ad507b72d01b06d56975dba0b7cafc8 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 12 Nov 2009 22:35:16 -0800 Subject: notmuch search: Add support for a --reverse option to reverse sort order. Note that the difference between thread results in date order and thread results in reverse-date order is not simply a matter of reversing the final results. When sorting in date order, the threads are sorted by the oldest message in the thread. When sorting in reverse-date order, the threads are sorted by the newest message in the thread. This difference means that we might want an explicit option in the interface to reverse the order, (even though the default will be to display the inbox in date order and global searches in reverse-date order). --- lib/thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/thread.cc') diff --git a/lib/thread.cc b/lib/thread.cc index df1d0db7..ffecc9d0 100644 --- a/lib/thread.cc +++ b/lib/thread.cc @@ -186,7 +186,7 @@ _notmuch_thread_create (void *ctx, thread->oldest = 0; thread->newest = 0; - notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_DATE_OLDEST_FIRST); + notmuch_query_set_sort (thread_id_query, NOTMUCH_SORT_DATE); for (messages = notmuch_query_search_messages (thread_id_query, 0, -1); notmuch_messages_has_more (messages); -- cgit v1.2.3