Article L643-4 of the French Commercial code
If one or more distributions of sums precede the distribution of the price of the immovables, the preferential and mortgage creditors admitted shall contribute to the distributions in proportion to their total claims. After the sale of the immovables and the final settlement of the order between the mortgage creditors and preferential creditors, those of them who rank in good standing on the price of the immovables for the totality…