I'm working with a program which creates a report with multiple output displays. All the same data but sorted differently in each iteration.
I've got a temp-table created with all the data necessary, and trying to do the different sortations.
I defined some variables as sortfield1, sortfield2...