def order_mirrored_vertex_points(vertices, plane):
    """
    Order mirrored vertex points to keep consistent global system

    Args:
        :vertices: (tuple) vertices like (a, b, c, d)
        :plane: (str) plane ('xy', 'xz' or 'yz')

    Returns:
        :ordered_vertices: (tuple) ordered vertices
    """

    a, b, c, d = vertices

    if plane == 'xy' or plane == 1:
        pass
    elif plane == 'xz' or plane == 2:
        a, b, c, d = b, a, d, c
    elif plane == 'yz' or plane == 3:
        a, b, c, d = d, c, b, a
    else:
        raise ValueError(f"Invalid plane (plane: '{plane}')")

    return (a, b, c, d)