Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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: 697
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".
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!