def test_string_ordering_dependents():
    """Prefer ordering tasks by name first even when in dependencies."""
    dsk = {("a", 1): (f, "b"), ("a", 2): (f, "b"), ("a", 3): (f, "b"), "b": (f,)}
    o = order(dsk)
    assert o == {"b": 0, ("a", 1): 1, ("a", 2): 2, ("a", 3): 3}
Prefer ordering tasks by name first even when in dependencies.
tests/core/serve/test_dag/test_order.py