(a) If, upon trial, judgment is rendered for the plaintiff, the court shall order a sale of the animal or animals as on execution sales to pay the judgment and costs.
(b) If bond is given for the retention of the animal or animals, the court shall render judgment on the bond against the sureties for the amount of the plaintiff's debt and cost.