> In my case I have a special comparator so that I have to go this way. If you are using Saxon as your XSLT engine (it supports XOM input), then you can sort using your special comparator using <xsl:sort collation="http://saxon.sf.net/collation?class=com.your.package.ClassName"/> Michael Kay http://www.saxonica.com/