How can I actually sort results retrived from Tamino by day (Mon, Tues, Wed…etc)??
Below is the example of the xml document:
Wednesday
12.00
1A23
Tuesday
13.00
1B02
Monday
14.00
1A05
Thursday
13.00
1A08
The result should be something like this:
Monday
14.00
1A05
Tuesday
13.00
1B02
Wednesday
12.00
1A23
Thursday
13.00
1A08
:rolleyes:
Hi,
As far as I know there isn’t a way to specify an order criteria in the schema that can be used to sort an element.
However, a possible workaround might be to include an attribute in the schema that contains the numerical value for the day of the week.
Wednesday
12.00
1A23
Tuesday
13.00
1B02
Monday
14.00
1A05
Thursday
13.00
1A08
Then you could sort using the following query:
schedule sortby(Day/@dow asc)
Regards,
Puny Sen