Add sorting to table headers