Court shall determine and enforce all rights of parties to said action

N.Y. Suffolk County Tax Act § 57, under Collection of Taxes and Assessments By Sale.

N.Y. Suffolk County Tax Act § 57

§ 57. Court shall determine and enforce all rights of parties to said action. The court shall have full power to determine and enforce in all respects the rights, claims and demands of the several parties to said action, including the rights, claims and demands of the defendants as between themselves, to direct a sale of such real property and the distribution or other disposition of the proceeds of sale. Any party to the action, including the county of Suffolk, may become the purchaser at any such sale.