When sale of real estate is ordered pursuant to partition proceedings, and a creditor has, at any time prior to the distribution of the proceeds of sale, obtained a judgment against a distributee thereof or his legal representatives, the court wherein the partition proceeding is pending, may, upon application thereto by the judgment creditor, order and direct the judgment to be paid out of the proceeds of the sale of the share against which it would be a lien had such share been owned by the debtor in severalty.
N.J.S. § 2A:56-23