You could form your results into XML and do a simple XSL transformation to get what you want.
Cool! What's the name of the XSLT processor you are using that can sort 1M records in memory?
jd.xslt is known to handle extremely large sources:
http://www.aztecrider.com/xslt/
Alternativley, and much better performing you could use STX, see:
http://www.xml.com/pub/a/2003/02/26/stx.html
and:
http://stx.sourceforge.net/documents/
best, -Rob
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]