Sort init fix

It should check if the column is shown in html or not.