Issue #2845114 by tstoeckler, Sam152: Add deterministic sorting of workflow states in and state transitions in config