reorder attributes