Can you demonstrate how to automate a specific application workflow?
Implement a function that orders workflow steps while respecting prerequisite dependencies. Return the lexicographically smallest valid order, or an empty list if the dependencies form a cycle.
Input consists of unique step names and dependency pairs [ prerequisite, step ]. The function must return a list of step names.
def workflow_order(steps, dependencies):