Order is following: - declared declarations in declaration (in source) order - generated declarations in sorted order