• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xsl:sort - Help Required

 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have got a section of XML that looks like:

I want to get a list of orders but sorted by client name and then order id.
i.e. something like :

I have tried all sorts of XPath statements but I have not found the solution, can anyone out there enlighten me.
Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML:XSL:Output:
[ October 03, 2003: Message edited by: Lasse Koskela ]
 
Andy Bowes
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lasse.
I also found another another alternative were I selected all clients in alphabetical order and then select the list of orders for each specific client.
I now need to see which one of these performs best.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I now need to see which one of these performs best.
Might I ask to publish your findings here as well? Of course it's only one, very specific case in a specific environment, but I'm just curious...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic