Skip to content
Snippets Groups Projects
Commit 976673f5 authored by esikkala's avatar esikkala
Browse files

Make order by predicate optional

parent 6e466b07
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ export const facetResultSetQuery = `
SELECT DISTINCT ?id {
<FILTER>
?id a <RDF_TYPE> .
?id <ORDER_BY_PREDICATE> ?orderBy .
OPTIONAL { ?id <ORDER_BY_PREDICATE> ?orderBy }
}
ORDER BY (!BOUND(?orderBy)) <SORT_DIRECTION>(?orderBy)
<PAGE>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment