It shall be the duty of the county treasurer for each and every county, when collecting personal and real estate taxes being delinquent five years or more, to receipt for such taxes on a receipt for the fifth delinquent year. Such taxes so collected shall be prorated in proportion to the levies applicable for the year levied. All state taxes when collected shall be remitted to the State Treasurer and by him or her credited to the fund or funds for which the levy or levies were made, and all county funds when collected shall be placed to the credit of the county general fund; all municipal, school district, learning community, township, precinct, and special funds shall be entered in separate columns. All taxes so consolidated shall be paid in order of priority of delinquency.