If the charges and costs as provided in section 39-12-17 are not paid immediately from a cash bond previously posted or other cash payment, the judge shall order the vehicle confiscated and sold by the sheriff of the county at a public sale to the highest bidder and the proceeds applied to the payment of the charges and costs assessed under the provisions of sections 39-12-11 through 39-12-22.