The structure is:
t = {[index] = {x, y}}
I would like my table table look like this after the sort:
t = {[1] = {5, 0}
[2] = {6, 0}
[3] = {7, 0}
[4] = {7, 1}
[5] = {6, 1}
[6] = {5, 1}
[7] = {5, 2}
[8] = {6, 2}
[9] = {7, 2}
[10] = {6, 3}
[11] = {5, 3}
[12] = {4, 3}
Etc.
}
To be a bit clearer;
y should be sorted from low to high
x should alternate from low to high and high to low for a given y series
Yes, table.sort() exists and looks like the tool for the job. But how do I use it?
Thanks