Try jquery tablesorter.