Where any realty is subject to liens or claims which under existing laws would be discharged by a judicial sale, such liens and claims shall be unaffected by a private sale of such realty; but a public sale may be made thereof, freed and clear of such liens or claims, by leave of court, after notice to the claimants; and the fund realized shall take the place of the liens or claims, and be distributed on the settlement of the account of the assignee or receiver, to the parties found entitled thereto. Executions issued on such liens or claims may be stayed by the court, to enable the property to be sold by the assignee or receiver.
39 P.S. § 77