def sort_response(response_dict, *args):
    """
    Used in tests to sort responses by two or more keys.
    For example if response includes experimentKey and FeatureKey, the function
    will sort by primary and secondary key, depending which one you put first.
    The first param will be primary sorted, second secondary.
    Can handle arbitrary number of arguments.
    :param response_dict: response
    :param args: usually experimentKey and featureKey
    :return: sorted response
    """
    return sorted(response_dict, key=lambda k: tuple(map(k.__getitem__, args)))