When any live stock is levied upon in any attachment proceeding, the plaintiff may apply to the court in which the action is pending for an order of sale thereof, and if it shall appear that the stock is fit for market, or that if not sold will depreciate in value, then the court shall order a sale of the property on such terms as shall seem proper, and the proceeds shall be deposited with the clerk of the court in which the action is pending until determined by the court, and then be paid to the successful party in the action.
735 ILCS 5/4-145