Sort columns and mark to hide