X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcql_sortkeys.c;h=747fae7030a0ab523e29d4d4b9cf5ac25ec23716;hb=03dccce903176e61f889b1558834aa5a09f9f8c0;hp=d501bff400bceaa4e68f181983c5d38a3aa73e14;hpb=5650509910a3a243d42113305be7ef5412d2f95e;p=yaz-moved-to-github.git diff --git a/src/cql_sortkeys.c b/src/cql_sortkeys.c index d501bff..747fae7 100644 --- a/src/cql_sortkeys.c +++ b/src/cql_sortkeys.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -51,6 +51,8 @@ static int cql_sort_modifiers(struct cql_node *cn, for (; cn; cn = cn->u.st.modifiers) { const char *indx = cn->u.st.index; + if (!strncmp(indx, "sort.", 5)) + indx = indx + 5; if (!strcmp(indx, "ignoreCase")) caseSensitive = 0; else if (!strcmp(indx, "respectCase"))