Sort the required fields to keep the constructors consistent across compiles
Use a treeset to sort the annotations found.