Table enhancement: Prevented overlapping of text and sorting buttons for narrow columns (fixes #3628)