From: Dennis Schafroth Date: Wed, 10 Oct 2012 10:44:21 +0000 (+0200) Subject: Use CURRENT sort parameters to check with previous X-Git-Tag: v1.6.22~8 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=d2fcb0b0bedc58ae584ce7c023c95cb5d99f54e3;p=pazpar2-moved-to-github.git Use CURRENT sort parameters to check with previous --- diff --git a/src/client.c b/src/client.c index 618dfcf..189bb61 100644 --- a/src/client.c +++ b/src/client.c @@ -1371,12 +1371,10 @@ int client_parse_sort(struct client *cl, struct reclist_sortparms *sp) { struct session *se = client_get_session(cl); if (sp) - { /* first entry is current sorting ! */ + { const char *sort_strategy_and_spec = - get_strategy_plus_sort(cl, se->sorted_results->name); - - int increasing = se->sorted_results->increasing; - // int type = se->sorted_results->type; + get_strategy_plus_sort(cl, sp->name); + int increasing = sp->increasing; if (sort_strategy_and_spec && strlen(sort_strategy_and_spec) < 40) { char strategy[50], *p;