J2PVPX3PMJTSF6WGVBVOGF6ZAKRII5OXQ7XZPPV44NL4EUWJGG3QC
ZKSXZMQFFORKJBXBOYXWFZ7UDLXKTZTK36BYHRKXCOCWJZFJD7EAC
YFZX4FSZVP55LLENXKOD4JXAPAEGHWLB5JAYWWD6FKQSU6XEQHTAC
QDZOD3MNMZUH4NDQLFTR537OCTJ2ATTHV4MJGBAQGJRW342PYSTQC
LDUI5PR2REYBDTO27SSVTFICM2WY5FB3BBLFA24RIQWFWOYQLXIAC
4BWPI66VMCGJSBGGIZMAFEKJGFMBS7HSV5H2GUC6QUF32XR6ZSCAC
ZQNDNT3KX3XTPQI7OQ7EXOTHZ5XVT3F5CAH7Q4MHIKMV27JSPASQC
RX4WJ4WAVFFVMH4OSEELHZVF4FDTI4LCNUSSYTCZKLAP7VOVE67QC
let mut counter = 1;
while let Some(mut row) = buf.pop() {
row[2] = counter.to_string();
counter += 1;
// Iterate in reverse order to assign correct transaction_number
for (counter, row) in buf.iter_mut().rev().enumerate() {
let transaction_number = counter + 1;
row[2] = transaction_number.to_string();
}
// Write CSV in original order, most recent first
while let Some(row) = buf.pop_front() {