diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2010-04-16 08:38:46 +0200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-21 16:06:05 -0700 |
commit | aadb15a002dc01903d60ca40048d6d4ef3990863 (patch) | |
tree | a3fb3a903718e2b1ee8ed04a6deef72c3dfda104 /lib/query.cc | |
parent | f41a35e2923b0b3ef2f66e91cd30e20b4c1a336a (diff) |
query.cc: allow to return query results unsorted
Previously, we always sorted the returned results by some string value,
(newest-to-oldest by default), however in some cases (as when applying
tags to a search result) we are not interested in any special order.
This introduces a NOTMUCH_SORT_UNSORTED value that does just that. It is
not used at the moment anywhere in the code.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'lib/query.cc')
-rw-r--r-- | lib/query.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc index 3e20f59c..7e1b6b52 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -148,6 +148,8 @@ notmuch_query_search_messages (notmuch_query_t *query) case NOTMUCH_SORT_MESSAGE_ID: enquire.set_sort_by_value (NOTMUCH_VALUE_MESSAGE_ID, FALSE); break; + case NOTMUCH_SORT_UNSORTED: + break; } #if DEBUG_QUERY |