File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript " Watch "javascript " New topic


Anitha Kuchana

Joined: Dec 22, 2011
Posts: 21
In jsp file i am using javascript:sort() method but its not working .please help me...
Swastik Dey

Joined: Jan 08, 2009
Posts: 1584

Can you show that part of the code.

Palak Mathur
Ranch Hand

Joined: Jan 29, 2007
Posts: 316

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?

Palak Mathur | My Blog | TechJaunt | What is JavaRanch? | List of All FAQs
Nikhil Padharia
Ranch Hand

Joined: Apr 19, 2012
Posts: 37
@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.
I agree. Here's the link:
subject: javascript
It's not a secret anymore!