def table_criteria(tag):
    """Criteria for stats tables for find_all"""
    table_tag = None
    if not tag.has_attr("class"):
        table_tag = False
    else:
        table_tag = (tag.name == "table" and
                     "stats_table" in tag["class"] and
                     "sortable" in tag["class"])
    return table_tag