X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fclient.c;h=fbfc564374ee80fceddd623b044f705c38e77106;hb=b4e2292424ace7d7065ed2001e5e0a8f2d8f5daf;hp=d6a815b724dc5678e96a720dd0a1295383e85019;hpb=8f18ee1ba68a1fb0efa37729ac6422d96fdd36a1;p=pazpar2-moved-to-github.git 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;