Added client-side JS table sorting