try to use deterministic order for utility code generation