| (: name : orderbylocal-42 :)
|
| (: description : Evaluation of "order by" clause with the "order by" clause of a FLWR expression set to "($x + $x) ", where $x is a set of small positive numbers and the ordering mode set to descending :)
|
| (: Use a locally defined sequence :)
|
| declare variable $input-context1 external;
|
| for $x in (0.000000000000000001,0.00000000000000001,0.0000000000000001,0.000000000000001,0.00000000000001,0.0000000000001,0.000000000001,0.00000000001,0.0000000001,0.000000001,0.00000001,0.0000001,0.000001,0.00001,0.0001,0.001,0.01,0.1,0.0)
|
| order by (xs:decimal($x) + xs:decimal($x)) descending return xs:decimal($x) + xs:decimal($x)
|