In all cases where a tenant or tenants shall make any assignment for the benefit of creditors, of goods and chattels, upon demised premises and which are liable to distress by the landlord for rent, the landlord shall be first entitled to receive out of the proceeds of the sale of such goods and chattels by the assignee or assignees, any sum or sums of money due him for rent of such demised premises at the time of the making of such assignment not exceeding one year's rent: Provided, That if the proceeds of the sale by the assignee or assignees shall not be sufficient to pay the landlord and the costs of the assignment, the landlord shall be entitled to receive the proceeds of sale, after deducting so much for costs as he would be liable to pay in case of a sale under distress.
39 P.S. § 216