From aadb15a002dc01903d60ca40048d6d4ef3990863 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Fri, 16 Apr 2010 08:38:46 +0200 Subject: 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 --- lib/query.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/query.cc') 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 -- cgit v1.2.3