Demand warrants registered for nonpayment shall be paid by the county treasurer either in the order of registration or in the order agreed to, in writing, by all of the holders of the district’s outstanding demand warrants, if the county treasurer approves the agreement.