When an order foreclosing a lien upon real estate is made in a suit having for its object the foreclosure of such lien, such order shall have all the force and effect of a writ of possession as between the parties to the foreclosure suit and any person claiming under the defendant to such suit by any right acquired pending such suit; and the court shall so direct in the judgment providing for the issuance of such order. The sheriff or other officer executing such order of sale shall proceed by virtue of such order of sale to place the purchaser of the property sold thereunder in possession thereof within thirty days after the day of sale.
Tex. R. Civ. P. 310