X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsortspec.c;h=7f272f5f9b32f7aab05291127e413e7870bd8c46;hp=e09895bb1a8a8ace02823bc6fe9c52712aa69c5b;hb=b161284b288325f5eb5557152d4da21d18dc8ded;hpb=00537b483d646bd04a204708ecbde708861f044e 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]) {