I have the array of integers: d[]. for example(7 columns and some rows):
4 1 8 0 3 2 6
7 0 4 9 1 1 5
0 6 1 3 5 2 0
and so on. At compile time I do not know how many columns has array d. And I do not know at compile time which columns to use to orderby.
For example need to sort by: d[5], d[2], d[0], d[3]. But at run time I know order of the columns to sort. For example column indexes: 5, 2, 0, 3 which mean d[5], d[2], d[0], d[3] columns. How can I orderby array d using this indexes of columns?