With some slight modifications it should be possible using recursion to sort for as many columns as demanded.
I have been trying to figure out how to do this but can't get my head around it.
Basically I would like to define an array that givers the columns to sort by and the order for the columns to be sorted, like primary sort column, secondary sort column e.t.c.
Any hints on how to modify Sort12_WE_1.xmcdz.zip to do this?
I found solution in this thread: