In the payment of any installment of real property taxes, the collector shall first apply the payments to interest (including interest added upon forfeiture to real property taxes) and costs. After the payment of interest and costs the payments shall be applied upon the total tax.
35 ILCS 200/20-215