About pagination
I have done an pagination code in a jsp page, now i have to sort according to column when clicked, can any give ideas.
[125 byte] By [
uk0102a] at [2007-11-27 2:36:18]

# 2
Yes ,we can write an order by statement in the query but I am not able to get how to pass the (asc or desc) on clicking the column name
<tr align='center'>
<th><a href="" onclick="sort()">ID</a></th>
<th >Name</th>
<th>From </th>
is this right?
i have tried this way but it is not calling the function
# 7
As you already have the collection object with you, I guess using the comparator is a better and an easier way to handle this. Once you have your comparator in place, 'Collections.sort()' would do the remaining.SirG