import re


def extract_courts(s: str) -> list:
    """
    Extract a list of court numbers listed in the statute's text.

    Args:
        s (str): The text of the statute that lists the court numbers.
    Returns:
        (list): A list court numbers, all cleaned up.
    """
    my_s = re.sub(r'[^0-9\s]', '', s)
    my_s = re.sub(r'\s{2,}', ' ', my_s)
    courts = my_s.strip().split(' ')
    result = []
    for court in courts:
        if court not in result:
            result.append(court)
    return sorted(result)