B:BD[
5.7416] → [
5.7416:7477]
B:BD[
5.7477] → [
2.97:148]
for (counter, row) in buf.iter_mut().rev().enumerate() {
row.set_number((counter + 1).to_string());
if utdrag_entry_order {
for (counter, row) in buf.iter_mut().enumerate() {
row.set_number((counter + 1).to_string());
}
// Write CSV in original order, most recent first
while let Some(row) = buf.pop_front() {
wtr.write_record(row.output())?;
}
} else {
for (counter, row) in buf.iter_mut().rev().enumerate() {
row.set_number((counter + 1).to_string());
}
// Write CSV in original order, most recent first
while let Some(row) = buf.pop_front() {
wtr.write_record(row.output())?;
}