def test_result_group_sort_key(test_result_group):
    """
    Used to sort result test groups by their name.
    
    Parameters
    ----------
    test_result_group : ``ResultGroup``
        Test result group to get sort key of.
    
    Returns
    -------
    sort_key : `tuple` (`str`, `str`)
    """
    case = test_result_group.case
    key = (case.import_route, case.name)
    return key