]> git.notmuchmail.org Git - notmuch/commit
notmuch search: Add support for a --reverse option to reverse sort order.
authorCarl Worth <cworth@cworth.org>
Fri, 13 Nov 2009 06:35:16 +0000 (22:35 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 13 Nov 2009 06:35:16 +0000 (22:35 -0800)
commitf7b49d658ad507b72d01b06d56975dba0b7cafc8
tree69df4deaed2a6362c449ff8df566cfeb6bea2abe
parent5f5e9b8662d562a3d8bd9ab7144fc1fead1c3d22
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/notmuch.h
lib/query.cc
lib/thread.cc
notmuch-search.c