fixed bugs in sort and column names
fixed bugs in sort and column names