When the mortgagor, after being directed so to do, fails to pay the principal, interest, and costs as required by Code Section 44-14-230 and fails to set up and sustain his defense against the foreclosure of the mortgage, the court shall give judgment for the amount which may be due on the mortgage and shall order the mortgaged property to be sold in the manner and under the same regulations which govern sheriffs' sales under execution.
OCGA § 44-14-187