Sort workflows to submit by priority.