def METHOD_NAME(
    self, user: AbstractUser, builder: Builder, order: List[int]
) -> List[int]:
    """
    Assigns a new order to the pages in a builder application.
    :param user: The user trying to order the pages
    :param builder: The builder that the pages belong to
    :param order: The new order of the pages
    :return: The new order of the pages
    """
    CoreHandler().check_permissions(
        user,
        OrderPagesBuilderOperationType.type,
        workspace=builder.workspace,
        context=builder,
    )
    all_pages = Page.objects.filter(builder_id=builder.id)
    user_pages = CoreHandler().filter_queryset(
        user,
        OrderPagesBuilderOperationType.type,
        all_pages,
        workspace=builder.workspace,
        context=builder,
    )
    full_order = self.handler.METHOD_NAME(builder, order, user_pages)
    pages_reordered.send(self, builder=builder, order=full_order, user=user)
    return full_order