[
https://issues.apache.org/jira/browse/VXQUERY-184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158128#comment-15158128
]
Till Westmann commented on VXQUERY-184:
---------------------------------------
Not sure, but it seems that there might be an implicit atomization missing.
According to the specification [1] atomization should be applied to each
orderspec - which is exactly what you do when applying data(...) on $x/title ...
[1] https://www.w3.org/TR/xquery/#id-orderby-return
> Unordered result of order-by
> ----------------------------
>
> Key: VXQUERY-184
> URL: https://issues.apache.org/jira/browse/VXQUERY-184
> Project: VXQuery
> Issue Type: Question
> Reporter: Christina Pavlopoulou
> Priority: Minor
>
> I tried to run the following query in VXQUERY:
> for $x in doc("books.xml")/bookstore/book
> order by $x/title
> return $x/title
> The result I got was not ordered. But if I change the second line to this:
> order by data($x/title) the result is correct.
> Why does this happen?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)