Wrong order of workflow post functions when creating a new workflow using rest API

Hey,
I am trying to copy a workflow using the REST API to create a workflow https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflows/#api-rest-api-3-workflow-post
In the workflow I added two post functions- assign to current user and clear field value. The assign is first, and the clear comes next.
My problem is that when I create the workflow using the rest POST API the order is changed, and the clear field value appears before.
It can happen on other fields, and I cannot trust the workflows will work ok if the order of the post functions will be changed.
Is this a known bug? anyone knows how to overcome it?

There is no solution for this according to the support.
If anyone is interested here is the ticket for this feature request:
https://jira.atlassian.com/browse/JRACLOUD-80800