def METHOD_NAME(model_instances, client):
    "Test support for `sort` and `order` parameters"
    resp = client.get("/api/v2/budget_authority/agencies/000/?sort=year")
    years = [r["year"] for r in resp.json()["results"]]
    assert years == sorted(years)