Fields are output into different order at random times
To Reproduce Steps to reproduce the behavior:
- Run the following CLI command:
things-cli --csv all > tasks.csv - Open
tasks.csvin any editor - Make note of the column labels and their order
- Repeat the above steps
Expected behavior Each time the export is done, the same columns are exported in the same order
Additional context Not every time, but I run the export once per week, and the column headers will shift position:
Column order on 2024-02-07 export:
title uuid type status area area_title notes tags start start_date deadline stop_date created modified index today_index project project_title heading heading_title
Column order on 2024-02-12 export (notice how the project* and heading* fields are swapped):
title uuid type status area area_title notes tags start start_date deadline stop_date created modified index today_index heading heading_title project project_title
Column order on 2024-02-19 export (fields are now in a completely-different order):
title uuid type status notes start start_date deadline stop_date created modified index today_index area area_title tags project project_title heading heading_title
Why is this important?
I import Things 3 tasks into a custom spreadsheet in order to perform analytics, but it expects the input (tasks.csv) to be the same structure each time. Reordering of columns breaks these analytics.
Thanks, that's interesting. Not sure why this happens...