Change tree path

Hello guys,
I am in trouble with tree data. I have 32 points (red circles). Now, it was gathered by horizontal direction. (like above picture). But, I want to divide to separate 8 points according to vertical direction, and so on (like below picture). Any help will be appreciated. Thank in advance ! (25.8 KB)
MainGrid_TKTQ.3dm (258.1 KB)

i’m getting this when trying to look at your .gh

Thank you for your quickly answer. But these components are related to Tekla Structures software and Tekla’s model. It takes a lot your time to install them. Could you convert above example to Rhino and GH example, bro?

According to your description, “Flip Matrix” should work.

I handled this. Many thank for your enthusiasm, Kim !