reorder data columns and factor levels