def METHOD_NAME() -> None:
    """Check the group and sort results."""
    # frames = [
    #     Frame(name="bbb-1", videoName="bbb", frameIndex=1, labels=[]),
    #     Frame(name="aaa-2", videoName="aaa", frameIndex=2, labels=[]),
    #     Frame(name="aaa-2", videoName="aaa", frameIndex=1, labels=[]),
    # ]
    frames = [
        Frame(name="bbb-1", videoName="bbb", frameIndex=1, labels=[]),
        Frame(name="aaa-2", videoName="aaa", frameIndex=2, labels=[]),
        Frame(name="bbb-2", videoName="bbb", frameIndex=2, labels=[]),
        Frame(name="aaa-2", videoName="aaa", frameIndex=1, labels=[]),
        Frame(name="bbb-3", videoName="bbb", frameIndex=3, labels=[]),
    ]
    frames_list = group_and_sort(frames)
    assert len(frames_list) == 2
    assert len(frames_list[0]) == 2
    assert len(frames_list[1]) == 3
    assert str(frames_list[0][0].videoName) == "aaa"
    assert frames_list[0][1].name == "aaa-2"
    assert frames_list[0][1].frameIndex == 2
    assert str(frames_list[1][0].videoName) == "bbb"
    assert frames_list[1][1].frameIndex == 2
    assert frames_list[1][1].name == "bbb-2"