Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSL Sorting inside for-each

 
Nishant Pandian
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys,

I have a condition . The following code returns a set of records. My requirement is that it has to sorted out in an ascending order n then sent.


THe output has to sorted out based on "ProcessOrder" element.




Kindly help me out with this... Thanks in advance.
 
g tsuji
Ranch Hand
Posts: 689
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this.

If @value's are number and that you want to sort in number type, add an attribute to xsl:sort element, namely, data-type="number".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic