Group lines which have the same start point

Hi all,
As the title, I have a list of lines was flattened like this:

And I want it to be look like:

I mean it will be group the lines which have same start point at X point to sub lists
Please show me how to do it

Thank you!
Hoang Lynh

You should be able to just feed your flattened list of start points into a “List.GroupByKey” node (Flattened list into both inputs) an this will group them for you

1 Like

Or GroupByFunction works as well.


Thanks all, it worked perfect!