Ordered that the appeal is dismissed, without costs or disbursements.
The portion of the order appealed from sua sponte directed dismissal of the complaint and imposed a sanction. As no appeal lies as of right from that part of an order which does not decide a motion made on notice ( see CPLR 5701 [a] [2]; Young v Young, 49 AD3d 720; Matter of Davis v Venditto, 45 AD3d 837), and leave to appeal has not been granted ( see CPLR 5701 [c]), the appeal must be dismissed. Further, the appeal from so much of the order as sua sponte imposed a sanction upon the plaintiffs counsel must be dismissed, in any event, as the plaintiff is not aggrieved by that portion of the order ( see CPLR 5511; Scopelliti v Town of New Castle, 92 NY2d 944; Zarecki Assoc, LLC v Ross, 50 AD3d 679).