In actions to enforce a mortgage, deed of trust, or other lien or charge, a personal judgment or judgment or judgments shall be rendered for the amount or amounts due as well to the plaintiff as other parties to the action having liens upon the mortgaged premises by mortgage or otherwise, with interest thereon, and for sale of the property charged and the application of the proceeds; or such appli