def METHOD_NAME(api_client):
    Attribute.objects.bulk_create(
        [
            Attribute(name="MyAttribute", slug="b", type=AttributeType.PRODUCT_TYPE),
            Attribute(name="MyAttribute", slug="a", type=AttributeType.PRODUCT_TYPE),
        ]
    )
    variables = {"sortBy": {"field": "SLUG", "direction": "ASC"}}
    attributes = get_graphql_content(
        api_client.post_graphql(ATTRIBUTES_SORT_QUERY, variables)
    )["data"]["attributes"]["edges"]
    assert len(attributes) == 2
    assert attributes[0]["node"]["slug"] == "a"
    assert attributes[1]["node"]["slug"] == "b"