This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sorting product descriptions




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]