<wicket:extend xmlns:wicket="http://wicket.apache.org">

This example demonstrates how easy it is to implement sorting. Simply implement your data provider by extending a SortableDataProvider class and add a few OrderByLinks to the page.
<br/><br/>


<span wicket:id="navigator">[dataview navigator]</span>
<div>
    <table cellspacing="0" class="dataview">
        <tr>
            <th>Actions</th>
            <th>ID</th>
            <th wicket:id="orderByFirstName">First Name</th>
            <th wicket:id="orderByLastName">Last Name</th>
            <th>Home Phone</th>
            <th>Cell Phone</th>
        </tr>
        <tr wicket:id="sorting">
            <td><span wicket:id="actions">[actions]</span></td>
            <td><span wicket:id="contactid">[contactid]</span> </td>
            <td><span wicket:id="firstname">[firstname]</span></td>
            <td><span wicket:id="lastname">[lastname]</span></td>
            <td><span wicket:id="homephone">[homephone]</span></td>
            <td><span wicket:id="cellphone">[cellphone]</span></td>
        </tr>
    </table>
</div>
</wicket:extend>