Conn. Gen. Stat. § 42a-4A-504
Order in which items and payment orders may be charged to account; order of withdrawals from account.
(b) In determining whether a credit to an account has been withdrawn by the holder of the account or applied to a debt of the holder of the account, credits first made to the account are first withdrawn or applied.