Fix sorting when frozen columns.