For ICU testing, pass -o to yaz-icu
[yaz-moved-to-github.git] / src / cql_sortkeys.c
index d501bff..c3f0845 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) 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"))