reorder attributes.