X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;h=a869f3e60d1e0aeace3526c90d8a1e6bde4ae9ff;hp=a70be1ddc4701dc28c7d24684180aad01394c5e5;hb=333486572517d2e2084d66208de59085f21d8573;hpb=5dec429f457c5b387a43802a32ef3192592c425d diff --git a/lib/query.cc b/lib/query.cc index a70be1dd..a869f3e6 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -61,7 +61,7 @@ notmuch_query_create (notmuch_database_t *notmuch, query->query_string = talloc_strdup (query, query_string); - query->sort = NOTMUCH_SORT_DATE; + query->sort = NOTMUCH_SORT_NEWEST_FIRST; return query; } @@ -109,10 +109,10 @@ notmuch_query_search_messages (notmuch_query_t *query, } switch (query->sort) { - case NOTMUCH_SORT_DATE: + case NOTMUCH_SORT_OLDEST_FIRST: enquire.set_sort_by_value (NOTMUCH_VALUE_TIMESTAMP, FALSE); break; - case NOTMUCH_SORT_DATE_REVERSE: + case NOTMUCH_SORT_NEWEST_FIRST: enquire.set_sort_by_value (NOTMUCH_VALUE_TIMESTAMP, TRUE); break; case NOTMUCH_SORT_MESSAGE_ID: