 <p>If you want to implement server side sorting then it does not matter what technology you are using in the front end. </p> <p>On a conceptual level you can do the following things:</p> <ol> <li>Write a SortingServlet which takes your grid and sorts it according to the request parameters passed to it and renders the output in the form of json(not strictly required but good to have)</li> <li>Use jQuery to make a Ajax call to this servlet and then format the response when you get it back. </li> </ol>