是否可以通过文件和方向的组合进行排序?IE:
let $list := (<a id="1">A</a>, <a id="2">A</a>, <a id="3">B</a>)
let $ordered :=
for $item in $list
order by $item/text ascending, $item/@id descending
return fn:data($item/@id)
return
if(fn:deep-equal((2,1,3),$ordered)) then "PASS" else "FAIL"