From b4e2292424ace7d7065ed2001e5e0a8f2d8f5daf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 10 Apr 2014 15:20:17 +0200 Subject: [PATCH] sortmap relevance always uses increasing=1 PAZ-930 --- src/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.c b/src/client.c index d6a815b..fbfc564 100644 --- a/src/client.c +++ b/src/client.c @@ -1495,6 +1495,8 @@ int client_parse_sort(struct client *cl, struct reclist_sortparms *sp) const char *sort_strategy_and_spec = get_strategy_plus_sort(cl, sp->name); int increasing = sp->increasing; + if (!strcmp(sp->name, "relevance")) + increasing = 1; if (sort_strategy_and_spec && strlen(sort_strategy_and_spec) < 40) { char strategy[50], *p; -- 1.7.10.4