Seperate grids in two lists

Hello community,

im trying to get two lists of grids, one for x-axe (A,B,C,…) and one for y-axe (1,2,3,…).
I could seperate them by element name, but not for the element itself.

I dont know how to match the right index from the “element.name” and “all elements of category” in two seperated lists. Hope u can help me, thanks.

Get the grid curve (or endpoints) and convert to a vector. Then group by vector or vector angle.

OK thanks, i tried but i dont know if thats the logic u mean. In the end i dont get “List.Group/Sort” too.
I want sort the grids in a list1(0, 180, 360 degrees) and list2 (90, 270 degrees).