27-17-404. Return of damaged property to officer for sale. In case such action to recover possession of personal property is brought against any sheriff or other officer who may have levied upon and seized the same under authority of any attachment or other process and judgment shall be rendered in favor of such officer for the return of the property, the party against whom such judgment is rendered may nevertheless make return of said property, notwithstanding the same may have been injured or lessened in value, and thereupon it is the duty of such officer to immediately advertise the same for sale as in cases of sales of property under execution and apply the proceeds of the sale thereof, after paying the costs, towards the payment and satisfaction of any judgment that may have been rendered.