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
N.Y. Suffolk County Tax Act § 57