We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current sorting mechanism rise an error when there is no key 'sorting' in the request.
for $content in $contents order by (: @see http://jaketrent.com/post/xquery-dynamic-order/ :) if ($order = 'descending') then map:get($content, $sorting) else () ascending, if ($order = 'descending') then () else map:get($content, $sorting) descending
as the dynamic sorting can be tricky, how to solve it ?
see http://en.wikibooks.org/wiki/XQuery/Searching,Paging_and_Sorting
The text was updated successfully, but these errors were encountered:
Waiting a nicer solution, could be solved with the following
let $sorting := if (map:get($queryParams, 'sorting')) then map:get($queryParams, 'sorting') else ''
Sorry, something went wrong.
No branches or pull requests
The current sorting mechanism rise an error when there is no key 'sorting' in the request.
as the dynamic sorting can be tricky, how to solve it ?
see http://en.wikibooks.org/wiki/XQuery/Searching,Paging_and_Sorting
The text was updated successfully, but these errors were encountered: