make sure all the dropdowns are sorted alphabetically on their keys before returning any json