def METHOD_NAME(
    monkeypatch, ordering_name, values, expected_values, reverse
):
    monkeypatch.setattr(settings.sort.reverse, "value", reverse)
    o = settings.OrderSetting("order", ordering_name)
    sorted_values = o.sort(values)
    expected_values = expected_values[::-1] if reverse else expected_values
    assert sorted_values == expected_values