California Revenue & Taxation Code
Cal. Rev. & Tax. Code § 7658.5
Every payment on a delinquent tax shall be applied as follows:
(a)First, to any interest due on the tax.
(b)Second, to any penalty imposed by this part.
(c)The balance, if any, to the tax itself.
Source: official text