fix error occurs when call sort.clear

when using singleSort and hiddenColumn together, sort a column first,
then hide this very column, and then call sort.clear, an error will
occur.