Upon such affidavit and complaint being filed, the clerk shall issue an order of arrest and bail, directed to the sheriff, which shall be issued, served, and returned in all respects as such orders in other cases; before such order shall issue the plaintiff shall file in the office of the clerk a bond, with sufficient surety, to be approved by the clerk, conditioned that the plaintiff will pay the defendant such damages and costs as he or she shall wrongfully sustain by reason of the action, which surety shall justify as provided by law.