California Code of Civil Procedure Section 1208.67
CA Civ Pro Code § 1208.67 (2017)
The proceeds of the sale must be applied to the discharge of the lien and the cost of keeping and selling the property. The remainder, if any, shall be paid to the legal owner.