def METHOD_NAME(self, views, pyramid_request):
    pyramid_request.matchdict["id_"] = sentinel.id_
    response = views.show_organization()
    sort_by_name = response["sort_by_name"]
    org_a = factories.Organization(name="a")
    org_b = factories.Organization(name="b")
    org_none = factories.Organization(name=None)
    results = sort_by_name([org_a, org_none, org_b])
    assert list(results) == [org_none, org_a, org_b]