The rights of the parties shall be settled by the judgment or decree of the court, and the proceeds divided in accordance therewith.
Code 1858, § 3302 (deriv. Acts 1827, ch. 54, § 2); Shan., § 5051; Code 1932, § 9206; T.C.A. (orig. ed.), § 23-2147.