on my report this isn't sorting.
When i run with &export=sql i can see the order of the dbr.crosstab.header.col which is correct but the crosstab is in a different order
selection from when run with &export=sql
Begining of Report
select 'dbr.parameters.show';
select 'dbr.subtitle', 'Income/expense.';
select 'dbr.crosstab', 'yeardate';
select 'dbr.sum', 'Amount';
select 'dbr.hsum', 'Amount';
select 'dbr.hidecolumn', 'Accounttype';
select 'dbr.summary.options', 'skip_single_line_summary';
select 'dbr.keepwithnext';
;
select 'dbr.crosstab.header.col', '2024 2'
union all
select 'dbr.crosstab.header.col', '2019 9'
union all
select 'dbr.crosstab.header.col', '2019 8'
begining of crosstab
select 'Automotive Fuel 8110' as 'Account', '2015 9' as 'yeardate', 5 as 'Accounttype', 20.0 as '[Amount]'
union all
select 'Automotive Fuel 8110', '2015 8', 5, 67.82
union all
select 'Automotive Fuel 8110', '2015 7', 5, 9.75
union all
select 'Automotive Fuel 8110', '2015 6', 5, 20.0
union all