In the case of an appeal brought pursuant to Section 51.014(a)(6) , if the order appealed from is affirmed, the court of appeals shall order the appellant to pay all costs and reasonable attorney fees of the appeal; otherwise, each party shall be liable for and taxed its own costs of the appeal.
Tex. Civ. Prac. and Rem. Code § 51.015