[Bug 29044] array:sort does not define a total order when keys contain NaN

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29044

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
I was actioned to propose a resolution.

Note that XSLT says:

NaN values, for sorting purposes, are considered to be equal to each other, and
less than any other numeric value.

XQuery is rather more convoluted; it doesn't mention NaN by name, but it has
the same effect in that if V is NaN and W is NaN then neither V nor W is
greater than the other and therefore they behave in the same way as a pair of
values that are equal.

I propose to use the fix suggested by Josh, of using deep-equal() rather than
eq in the definition of the deep-less-than function.

The changes have been applied, but the bug is left open for WG approval of the
proposal.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 2 September 2015 16:55:32 UTC