reorder attributes alphabetically.