Only sort when clicking headers inside a <thead>