Blocks linear array index

Hello,
I have this blocks that are the result of two linear arrays. I want their point list to be in this order (picture below), however, they are not like this now. Could you please help me with my problem?
Thank you all,


blocks list.gh (53.9 KB)

Sometimes, like this case, Path Mapperis quite useful.


blocks list_re.gh (63.9 KB)

Thank you. It was really helpful.