(a)  General rule.–After the divorce of any spouse who is a tenant by the entireties of real property with the former spouse, the divorced spouse is entitled to all the rights and remedies provided in this subchapter for the collection of any sums of money ordered by a court to be paid to the divorced spouse for the support of the children of the former spouse as fully as if no divorce had occurred.

(b)  Proceeds of sale.–Upon the sale of the real property for the collection of any sums of money due the divorced spouse under an order of court, the divorced spouse shall be entitled to receive therefrom such sum of money as represents the share of the divorced spouse in the property, as ordered by the court under section 4362 (relating to plaintiff’s share of proceeds of sale), together with any sums which may be due to the divorced spouse under an order of support against the former spouse.