[PATCH] allow to not sort the search results

Sebastian Spaeth Sebastian at SSpaeth.de
Sun Apr 18 06:56:58 PDT 2010


On 2010-04-16, Sebastian Spaeth wrote:
> Olly was right in that even for "notmuch tag" we were sorting the
> results by date before applying tag changes. I have slightly reworked my
> patch to have notmuch tag avoid doing that. I also split up the patch in
> 3 patches that do one thing each.
> 
> The patches do:
> 1: Introduce NOTMUCH_SORT_UNSORTED
> 2: Introduce notmuch search --sort=unsorted
> 3: Make notmuch tag not sort results by date
> 
> #2 is the one I am least sure about, I don't know if there is a use case
> for notmuch search returning unsorted results. But 1 & 3 are useful at
> least.

> Patches 1-3 follow as reply to this one

May I advocate patches 1 & 3 for inclusion in 0.3? I've been using this
in my tree without problems. patch 2 is left to your judgement as to
whether a "--sort=unsorted" is useful for notmuch search. (it will
probably rather benefit from a --sort=relevance, I guess).

Sebastian


More information about the notmuch mailing list