Hi,
Since Tamino XQuery does not support the fn:upper-case() or fn:lower-case() function you have to specify an according default collation to perform a case-insensitive sort. An example query looks like:
declare default collation “collation?language=en;strength=secondary”
(“a”,“B”) sort by (.)
The result of the query is:
xq:valuea</xq:value>
xq:valueB</xq:value>
This also works if the input strings contain digits. The following query
declare default collation “collation?language=en;strength=secondary”
(“a”,“1a”,“B”) sort by (.)
Gives the result:
xq:value1a</xq:value>
xq:valuea</xq:value>
xq:valueB</xq:value>
Please note that the default collation support in XQuery has been introduced with Tamino 4.2.
Best regards,
Thorsten Fiebig
#webMethods#Tamino#API-Management