Reenctly returned to dynamo after far too long away.
attempting to renumber doors based on their “to room” parameter.
I have the logic of numbering the door sorted, but the list.groupbykey node seems to be scambling my lists, or outputting a string rather than an element.
Try wiring the doors from your code block (2nd node) into the list input. The unique keys likely want to go into the + node to create the DR.*** prefix.
That’s ok, as the keys are also scrambled in the same way and you are setting the scrambled elements by the scrambled keys. You could first sort the lists and keys using a List.SortByKey node where the lists were the lists, and the keys are the unique keys output, but unless there is more automation in this which ought to not be moved into a new graph then you might as well stop here.