Makes results table sortable by column

If you click on the column heading it'll sort the table by that column in ascending order. Click again and it'll sort in descending order.