Sorting the contents of a table by clicking on the headers.