aboutsummaryrefslogtreecommitdiff
path: root/lib/thread.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-11-12 22:35:16 -0800
committerCarl Worth <cworth@cworth.org>2009-11-12 22:35:16 -0800
commitf7b49d658ad507b72d01b06d56975dba0b7cafc8 (patch)
tree69df4deaed2a6362c449ff8df566cfeb6bea2abe /lib/thread.cc
parent5f5e9b8662d562a3d8bd9ab7144fc1fead1c3d22 (diff)
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).
Diffstat (limited to 'lib/thread.cc')
-rw-r--r--lib/thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread.cc b/lib/thread.cc
index df1d0db..ffecc9d 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);