I am looking for customization in sorting for the items coming from the MarkLogic database. While sorting double or single quote, dollar sign and all other punctuation should be ignored.
Below is the sample script:
xquery version "1.0-ml";
declare default collation "http://marklogic.com/collation/";
let $seq := ("a", "b", "1", "2", "$3", '"object"')
for $x in $seq
order by $x ascending
return $x