Sort table contents with an interface

Sorts the contents in a table using the TH tag.