clearing the row selection before sorting the columns.