fix(generator): Write URI in sorted order to prevent SHA churn