]> git.notmuchmail.org Git - notmuch/commit
query.cc: allow to return query results unsorted
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 16 Apr 2010 06:38:46 +0000 (08:38 +0200)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Apr 2010 23:06:05 +0000 (16:06 -0700)
commitaadb15a002dc01903d60ca40048d6d4ef3990863
treea3fb3a903718e2b1ee8ed04a6deef72c3dfda104
parentf41a35e2923b0b3ef2f66e91cd30e20b4c1a336a
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>
lib/notmuch.h
lib/query.cc