Subject: RE: [xsl] Sorting by days of the week|
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Tue, 23 Dec 2003 08:33:05 +0000
If you have a variable called DaysOfWeek containing the following nodeset: <Week> <Day>MON</Day> <Day>TUE</Day> <Day>WEN</Day> <Day>THU</Day> <Day>FRI</Day> <!-- perhaps also one for SAT and SUN --> </Week>
Regards, and merry christmas, Ragulf Pickaxe :)
From: allan.mccluskey@xxxxxxxxxxxxxxxxx Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Sorting by days of the week Date: Tue, 23 Dec 2003 13:49:24 +1100
I need to sort my output by days of the week. i.e. I have a element called 'dayCode' which can contain one of the following values: MON1, MON2, TUE1, TUE2, WED1, WED2, THU1, THU2, FRI1, FRI2 etc etc
I've tried using <xsl:sort select="dayCode" order="ascending"/> but as you would expect, the output order is FRI, MON, THU, TUE, WED.
Is there a way to do this kind or sort??