*
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
Author

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:
aaa-1-01/27/08
bbb-2-01/28/08
ccc-3-01/28/07

I want the values to be sorted in the chronological order and the values should appear as follows in the text area:
ccc-3-01/28/07
aaa-1-01/27/08
bbb-2-01/28/08

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

Thanks,
Prathima.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Display values in chronological order
 
Similar Threads
Ned help with "XPath"
how to solve this
Problem with date
Report in JSP
Difference between count() and last()