def swap_order(value):
    """
    Common crawl optimizes search by working back to front ("org.example.www")
    This is a utility function for swapping the order back to the expected value ("www.example.org")
    """
    parts = value.split(".")

    new_value = ""
    for part in parts:
        new_value = part + "." + new_value
    new_value = new_value[:-1]

    return new_value