functx:sort-case-insensitive
Sorts a sequence of values or nodes regardless of capitalization
Description
The functx:sort-case-insensitive function sorts a sequence of values or nodes without regard to whether they are upper or lower-case. Normally, using most collations, all upper-case letters are sorted before all lower-case letters, so “Z” would come before “a”. It returns the items in their original capitalization.
Parameters |
Description |
---|---|
seq:item() |
the sequence to sort |
Examples
XPath |
Results |
---|---|
functx:sort-case-insensitive((‘a’,’c’,’B’)) |
(‘a’, ‘B’, ‘c’) |
functx:sort-case-insensitive($in-xml/*) |
<f>a</f> <e>B</e> <f>c</f> |