X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=7676eef81e39c67a7285025b1d99717f7c02be70;hb=cbcac593e14143ef6b50a60f43204b53938a446d;hp=4575ef37da7443c5704e21d76a1fcd7f28afa23a;hpb=07bc8f15f98e22a866adda001ada9010567b3429;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 4575ef3..7676eef 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1188,7 +1188,7 @@ static void cmd_show(struct http_channel *c) release_session(c, s); return; } - session_sort(s->psession, sp->name, sp->increasing, 0); + session_sort(s->psession, sp->name, sp->increasing, sp->type == Metadata_sortkey_position); /* TODO This was too simple. Will make pazpar2 continuing reseting the session resultset and redo the search. Disable this for now sp->type == Metadata_sortkey_position */