wood burning stoves
The moose likes JSP and the fly likes display rows in order  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "display rows in order  " Watch "display rows in order  " New topic

display rows in order

Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
Hi Friends,
In an employee object have properties like first name, last name, email ,location.I want to display the rows in ascending/descending order of first name.Please help in this solution.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

How do you sort just one object? Or do you have a list of them? Please be complete in your questions.

Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
Recently I went for an interview ,in that he asked this question .I did not find any solution.That question is: In one employee object have different propertie like firstName,lastName,email ,location,..He wants do display all the properties in order of firstName property.
Is it possible to do that?If yes please explain...

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33107

I think he was looking to see if you know about the Comparator interface. Sometimes interview questions are incomplete, but you can always ask the interviewer clarifying questions.

[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: http://aspose.com/file-tools
subject: display rows in order
It's not a secret anymore!