Reorder variables