Adding fields and sorting of fields