i have a report, in which the columns is having a name and two gifs, one for ascending sort and the other for the descending sort. can anyone give me a sample code or site to implement the sorting functionality.
We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Hi, If you are getting the column values from the DB, you can re-query DB again with sort statement on the particular column with particular oreder. (When user click on that column) But if not, then you have write your own algorithm for sorting. Take a look at Comparator, sortedMap and TreeMap API for this. [ October 07, 2004: Message edited by: Manoj Gundawar ]
Manoj<br />SCJP, SCJD, SCWCD, IBM WSAD.
Joined: Nov 27, 2003
sorry for using the term "needed quickly" that i have given keeping in mind my delivery time. i could able to get the solution with a new algorithm which i have defined. thanks.