Re-ordering actions from within workflows

Re-ordering actions from within workflows

We have a workflow that runs a custom function and then sends an alert via email.     There is data in the email alert that is dependent on the custom function running first.   How do we tell the workflow which action to complete first?