The proceeds arising from such sale shall be distributed to the several funds entitled thereto in proper proportion, as shown upon the tax roll; and any portion of the tax that may remain uncollected by reason of the redemption or assignment herein provided for shall be divided among and charged to the several funds in proper proportion according to the tax levies of the various years for which the tax was delinquent.