Subject: Re: sorting product descriptions
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Mon, 30 Apr 2001 14:15:42 +0100
|
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
|