Fixed bug with sorting when column is hidden