• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript

 
Anitha Kuchana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In jsp file i am using javascript:sort() method but its not working .please help me...
 
Swastik Dey
Rancher
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show that part of the code.
 
Palak Mathur
Ranch Hand
Posts: 342
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anitha Kuchana wrote:In jsp file i am using javascript:sort() method but its not working .please help me...


What is the error you are getting? How are you using it in code?
 
Nikhil Padharia
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Palak - Question Initiator is never coming back (Observed from the previous posts ;)

HI Anitha,
You shoud interact with the people here to get better answers to your question.. Or if you have solved the problem then post the answer so that it would help other users to refer your post..

The problem you are facing seems like you are using javasript default sort method in a wrong way..
sort method is called with reference to the array..
syntax of sort method is

Here sortfunction is optional. It can be a function that defines the sort order.
for eg.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic