1809. When an immovable hypothecated for the payment of a life-rent is sold by a judicial sale, or by a voluntary sale followed by confirmation of title, the creditors whose claims are of date subsequent to that of the constitution of the rent are entitled to receive the proceeds of the sale on giving sufficient security for the continued payment of the rent, and in default of such security being given, the creditor of the rent is collocated, according to the order of his hypothec, for a sum equal to the value of the rent at the time of collocation.