How to Sort Block Instances by Name in Grasshopper?

Hi everyone,

I’m working with block instances in Rhino and Grasshopper, and I’m trying to sort them by name inside Grasshopper. I already have a list of block instances referenced into Grasshopper using Elefront. These blocks have clear names like 1FT-000130-00, 3WO-1100020-00, etc.

However, when I bring them into Grasshopper (via Block Instance → Block Definition), their order seems unpredictable. I want to sort them alphabetically (or alphanumerically) based on their block definition name.

Questions:
Can I use Sort List or Sort Text with those names to reorder the geometry accordingly?

Any advice, examples, or links would be greatly appreciated!

Thanks in advance :folded_hands:

Use this…

And set the K input to Model Block Instance / Instance / Definition / Name

You might also want to try Model Block Definition / Name

2 Likes

Why don’t you try it yourself?

1 Like