If any county lands or town lots have been sold under the provisions of law and the full amount of the tax charged against such lands or town lots has not been realized, the county treasurer and county clerk of such county are hereby directed to divide and charge the amount of such unrealized tax to the several funds in proper proportion, according to the tax levies of the years for the tax of which the said lands or town lots were sold.