Upon the sale in foreclosure, in this action, there resulted a surplus; which is claimed, on the one hand, by the respondents, by virtue of their mortgage, and, on the other hand, by the appellant, by virtue of a judgment for costs, recovered by him in a suit, notice of pendency of which was *Page 142 filed before the respondents took their mortgage. The respondents' mortgage was junior to the plaintiffs'; but, prior to its making, Lewis, the appellant, had commenced an action in the City Court of Brooklyn, against the mortgagor of the property, Gollner, to restrain him from erecting flats or apartment houses, in violation of a certain agreement theretofore made by him, and a notice of the pendency of the action had been duly filed. Lewis' action proceeded, until, eventually, he had final judgment in his favor, perpetually restraining Gollner and his wife "and all persons claiming under them, etc.," as prayed for and adjudging that he "recover of the defendants Gollner" the taxed costs and that he "have execution therefor." A transcript of this judgment was then docketed in the county clerk's office. The sale of the property in question was had under a decree which directed it to be made "subject to the rights, equities and easements" of Lewis in and to the property, as adjudged in the judgment of the City Court. It is argued in behalf of the appellant here, Lewis, that though his judgment for costs was recovered after the execution and recording of the mortgage to the respondents Watson and Pittinger, yet, because of the filing of a notice of the pendency of the action, the judgment must be regarded as taking effect from the time of such filing and, therefore, as impressing a lien for costs upon the property superior to that of the respondents' mortgage. In the distribution of surplus moneys the court, however guided by equitable rules in its determination of the priorities of claimants, does not proceed arbitrarily, nor with disregard of legal principles. The question here, as to whether the one, or the other of the two claimants has the superior equity in the moneys now representing the mortgaged property, must be governed, not by any inquiries into, or surmise as to, the knowledge of Watson and Pittinger as to Lewis' rights, or as to their motives in taking a mortgage from Gollner, but by a consideration of what advantage or security Lewis acquired over them by his prior filing of a notice of the pendency of his equitable action. Watson and Pittinger's rights in the land were wholly subordinated to Lewis' rights; *Page 143 as they should be established by the future decree. They took their mortgage upon the property, subject to whatever equities or claims the judgment in the action should thereafter charge upon it. The Code provides (sec. 1671), with respect to the effect of filing the notice of lis pendens, that a subsequent incumbrancer is "bound by all proceedings taken in the action, after the filing of the notice, to the same extent as if he was a party to the action." Hence, when, eventually, Lewis reached judgment in his favor in his equitable action, his rights and interests in, or about, the property, or the surplus fund, which became substituted for the property, were, and could only be, precisely what that judgment should describe them to be. That judgment, while adjudging to Lewis certain rights or easements in the property, did not charge the costs upon it; but, merely, gave to Lewis a judgment against Gollner personally for them. The property never became subjected to any lien for costs by virtue of the judgment recovered in the action in the City Court. It was the filing of a transcript of that judgment with the county clerk, as prescribed by the statute, which created a lien for the costs upon the judgment debtor's property. Full effect is given to the provision of the Code, in subjecting the rights of Watson and Pittinger, under the mortgage, to the decree of the court in Lewis' action; for the proceedings in the action resulted in a judgment which only charged Gollner's property with the restrictions mentioned in the agreement; the enforcement of the provisions of which was the ground of the action. Had Watson and Pittinger been actual parties to Lewis' action, the judgment recovered would only have affected the mortgage to them to the extent of cutting down the interest, or use of the mortgagor in the property mortgaged. Lewis' action was in rem and however the res should be affected as its result, so would the mortgaged interest be affected.
We think the order of the General Term was right and that it should be affirmed, with costs.
All concur.
Order affirmed. *Page 144