PsychoPy 2022.2 includes a new feature which allows the data columns to be reordered.
You can edit/access the information in Experiment Settings/Data/Column priority. First change “Sort columns by” to Priority (from First added). Alphabetical is also an option.
Priorities can either be assigned with numbers (columns with higher numbers will appear further to the left) or the following text values. I believe that negative numbers are excluded and the default priority for columns not mentioned will be low (0)
priority.CRITICAL
priority.HIGH
priority.MEDIUM
priority.LOW
priority.EXCLUDE
I would recommend using numbers to fine tune the order. priority.CRITICAL is a value of 30, so numbers higher than this will appear first.
N.B. This does not yet work online, but will hopefully be sorted for the next major release (2024.1)