projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85a0aae
)
cql_sortby_to_sortkeys: honor sort prefix
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 21 Dec 2011 09:29:56 +0000
(10:29 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 21 Dec 2011 09:29:56 +0000
(10:29 +0100)
src/cql_sortkeys.c
patch
|
blob
|
history
diff --git
a/src/cql_sortkeys.c
b/src/cql_sortkeys.c
index
d501bff
..
f54fd21
100644
(file)
--- a/
src/cql_sortkeys.c
+++ b/
src/cql_sortkeys.c
@@
-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"))