List.SortbyKeys not working on List.GroupbyKeys

Hello!

(Sorry for my bad English)

I’m new to using Dynamo. Lately, I’m been searching for how to use the “List.SortbyKeys” command. Some Thread, use it perfectly. After they use “List.GroupbyKeys” they can connect it to “List.SortbyKeys” and sort the sublist. but i can’t get the same result. i don’t know why?

Please help me. Im trying to make a simple code of how to Auto-Number a Beam. By following first the X coordinates then the Y.

The issue is that you no longer have a flat list once you group it, but instead a list of sublists.

You are no longer sorting items in your grocery list by their department to simplify shopping and prevent squishing your bread, but instead you are trying to sort the lists of all your grocery lists by the lists of all departments.

Set the list level to @L2 on both inputs, which tells Dynamo to take the action on each of the sublists rather than the list of sublists, and you should be fine. :slight_smile:

1 Like

Bro, IT LITERALLY WORKS!! THANKSS

Its been weeks since i trying to figuring out how this command works.

Thank youu! God Bless

1 Like