Sorting columns based on x and y points seem to end up in random order

I added a list flatten to the second point node and i got the script almost working i guess…

The problem now is that the columns get named from bottom to top instead from top to bottom…


image

There seems to be more going on than just inverse numbering. I added a few columns and made the name a number instead of a letter