Fixed bug in Table when sorting headings