21-49-23. Judgment rendered for amount due and costs--Sale of property and delivery to purchaser--Lien priorities. In an action for foreclosure or satisfaction, a court may:
(1) Render a judgment against the mortgagor for the amount of the mortgage debt due at the time of the rendition of such judgment, and the costs of the action, including reasonable attorney fees and actual disbursements made,
(2) Order and decree a sale of the mortgaged property, or such part thereof as may be sufficient to pay the amount adjudged to be due, and costs of sale,
(3) If deemed necessary, direct in what parcels the property shall be offered, and the order in which they shall be offered and further to direct that if there be no bid for any parcel, such parcel may be sold with any other parcel, not yet sold, in one parcel; and
(4) Order and compel the delivery of possession of the property to the purchaser.
In no case under this chapter shall the possession of the property so sold be delivered to the person entitled thereto, until after the expiration of the period of redemption, subject however to the rights of any person under a valid assignment of rents, and a receiver in possession thereof. There shall be added to the amount of any such judgment all sums reasonably expended by the mortgagee for the protection and preservation of the mortgaged property or the mortgagee's interest therein. The court shall further determine the priority of any other liens, the owners of which were made a party to the action, and shall have the further power to determine the rights of subsequent liens filed after the commencement of suit.
Source: SL 1977, ch 187, § 13; SL 1981, ch 170, § 4.