One workaround is to first set the error column Longname the same as corresponding y column and then sort by Longname. You have YYerrYYerr... kind of data, you can select all y and yerror columns, right click and select Set Multiple Column Values..., Put the LT script in Before Formula Scripts box and Apply.
if (mod(j,2) == 0){
wcol(j)[L]$ = wcol(j-1)[L]$;
}
One workaround is to first set the error column Longname the same as corresponding y column and then sort by Longname. You have YYerrYYerr... kind of data, you can select all y and yerror columns, right click and select Set Multiple Column Values..., Put the LT script in Before Formula Scripts box and Apply.
if (mod(j,2) == 0){
wcol(j)[L]$ = wcol(j-1)[L]$;
}
James
Thank you for the suggestion. It is like this now (see the screenshot above). Now how do I sort YYerrYYerr... columns my Y Mean, say descending while keeping YYerr together?
Please modify the script accordingly. Use the script below in your case. Then sort worksheet by column header row Mean.
if (mod(j,2) == 1){
wcol(j)[D1]$ = wcol(j-1)[D1]$;
}
James
This works --- thank you. However, by default, It would be great if Error columns will stick to their host data columns (both X and Y) while being sorted.