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

Display values in chronological order

prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
Hello everyone,
I have a form with three fields- sname, rank and date. The date field is still tokenized into day, month and year. The format of the date is mm/dd/yy.I have a text area where I can display all the values entered in the three fields.If my text area has values as follows:

I want the values to be sorted in the chronological order and the values should appear as follows in the text area:

Could any one tell me the way to display the values in the required order?

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

The first thing to do is decide whether you want to sort on the server (Java) or client (JavaScript.)

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Display values in chronological order
It's not a secret anymore!