Sorting data

From W3C XForms Group Wiki (Public)
Jump to: navigation, search

JohnBoyer

number compare(string, string, string?)

Summary: Returns -1, 0, or 1, depending on whether the value of the first argument is respectively less than, equal to, or greater than the value of second argument, according to the rules of the collation (third argument) that is used.

The collation used by the invocation of this function is determined according to the rules in Collations[1].

[1] http://www.w3.org/TR/xquery-operators/#collations