title: sorting HTML tables with displaytag JSP tab library
body: <p>I'm using the JSP <a href="http://displaytag.sourceforge.net/11/" rel="nofollow noreferrer">displaytag</a> tag lib to create HTML tables. I'd like the user to able to click on a column header in order to sort the data. My JSP code is shown below:</p>
  
  <pre><code>&lt;display:table name="tableData" id="stat" sort="page"&gt;
    &lt;display:column property="name" title="Name" sortable="true"/&gt;
    &lt;display:column property="age" title="Age" sortable="true"/&gt;
  &lt;/display:table&gt;
  </code></pre>
  
  <p>I thought this would cause the data to be sorted on the client-side (in JavaScript), but what it actually does is create a broken hyperlink on the column header back to the server.</p>
  
  <p>Is it possible to use displaytag to sort data on the client-side? If so, how?</p>
  
  <p>Cheers,
  Don</p>