How to specify the order in which fixtures are to be imported


I’m developing a custom app in v13.32.

I’ve amended with the fixtures I need for testing on a production instance and then use bench export-fixtures to export and persist testing data to the fixtures directory.

Then on the production environment, I use bench get-app and then bench install-app to instantiate the app. However, during bench install-app all the fixtures are also imported, but not in any specific order, causing an error. How can I impose an order to the importing of fixtures since there’s an implicit precedence amongst them such as for Role and Role Profile and a subsequent User having these roles or profiles?

Any workaround will also be much appreciated !