This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
For sorting and pagination data, you can use Jquery for showing and hiding the data, they are more effective than server side implementation of java.
There are lot of plugin available.
you can check these links for example