bug fix for column sorting in tabs