Combine lists with like values

I’m trying to group individual lines of text based on their proximity. We often receive parcel information as single lines of text and I want to convert them to a single Mtext object.

This is what I have so far.

I have no clue how comparing 576 true/false values to a list of 24 strings consistently groups these correctly, but I’ll take it. After the List.UniqueItems I’m usually left with some duplicate though incomplete lists. I’ve been searching for a node-based way to combine the lists that have at least one matching entry. So far nothing has made a solution click for me.

If I can get the lists cleaned up I should be able to reorder the text and create a single Mtext.

Thank you

When exporting a workspace, zoom in so you can read the node titles. It appears you are doing a cross (cartesian) product of all the text locations distance, then selecting on distance and culling the repeats. This could get very gnarly very quickly as you will experience exponential growth

You could use List.GroupBySimilarity nodes on the Y and then the X, adjust the tolerance to suit. Finally flip the Y values of the group so selection is top down (largest to smallest). I have used rectangles here but as long as you can get a point in space you can group by cluster
Note: pay attention to the list levels.