def _truncate_with_offset(resource, value_list, offset):
    """Truncate a list of dictionaries with a given offset.
    """
    if not offset:
        return resource
    offset = offset.lower()
    for i, j in enumerate(value_list):
        if j == offset:
            return resource[i + 1:]
        if j > offset:
            return resource[i:]
    return []
