This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: sorting product descriptions
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] sorting product descriptions
- From: Francis Norton <francis at redrice dot com>
- Date: Mon, 30 Apr 2001 14:15:42 +0100
- References: <20010430090611.15958.qmail@web4805.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Tobias Reif wrote:
>
> Hi Francis;
>
> > Tobi, you owe me a beer.
>
> Absolutely. XSLTUK 2002?
>
You're on!
> > You have a solution at
> > http://redrice.com/xml/sortfunction.zip
>
> Awesome! It works *very* well so far.
>
Thank you.
I suspect that there's a bug in there in the case of matching keys which
terminate on a string syllable, which I hope to correct this evening.
I may also implement a merge sort using an evil technique which has just
occurred to me. The current algorithm requires (n * n)/2 comparisons, so
is no better than a bubble sort except that it's easy to implement in
XSLT.
Francis.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list