Added the ability to sort the table by clicking on the col headings.