X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsortspec.c;h=7f272f5f9b32f7aab05291127e413e7870bd8c46;hb=5bc2ee09e4dff0f872ce738a5327bced915e3474;hp=e09895bb1a8a8ace02823bc6fe9c52712aa69c5b;hpb=71d7ffe7ec64adbc129682beef9df3f44bbca756;p=yaz-moved-to-github.git diff --git a/src/sortspec.c b/src/sortspec.c index e09895b..7f272f5 100644 --- a/src/sortspec.c +++ b/src/sortspec.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -417,8 +418,8 @@ int yaz_solr_sortkeys_to_sort_spec(const char *solr_sortkeys, WRBUF w) if (num_arg != 2) return -1; - if (!strcasecmp(arg[1],"asc") && - !strcasecmp(arg[1],"desc")) + if (yaz_matchstr(arg[1], "asc") && + yaz_matchstr(arg[1], "desc")) return -1; if (arg[1][0]) {