Set Column mark sequence by X,Y direction

Dears…
Recently i am trying to set the column mark sequence by x,y direction … and i m using the sorting index concept to set the column mark from minimum of x value. i feel that it’s almost achieve but i do not know what is wrong with my nodes… one of the value is mixed to minium value of x group. Hope someone can advice on my problem.
thanks in advanced.

image

Finally , I have got what i want … Thank you , i was using the lis.allindicesof input node wrongly… but i fix it my issue.
image

Could you share this script? I’m having this problem too.

Hi @caio_svieira ,
I do not update it for a bit long. You may try it and let me know if you still have problem.
Set Column Mark.dyn (158.6 KB)