How are cart transform and discount functions prioritized when there are multiple?

We’ve got some apps that we’re using that have cart transform and discount functions, and I’m working on some as custom distribution apps for the merchant as well.

I’m wondering how priority order is determined between them?

Is it possible to have my functions run at the end after the 3rd party apps have run? From some initial testing mine appears to be running before theirs.

No, I don’t think you can set the execution order of your Shopify functions. The functions execution order should be determined by Shopify