When a county seat is removed, the members of the county legislative body shall order a sale of the old courthouse and ground belonging to it, upon such terms as they think most for the interest of the county, and shall apply the proceeds of the sale to the payment for a new courthouse.