Organize Schedules by Scheduled Fields

I am trying to organize my schedules by one of the fields that are already within the Schedule. The schedules are coming from an instance of the an Assembly. The end goal is to match the Assembly name with its appropriate schedule and put this into an excel sheet without having to manually do this task. Norwood List.dyn (90.7 KB)

I did a similar thing with schedules from assemblies, changing the name of the schedule so that it matches the assembly name by using the “sort by function” node.

The only problem i have with it it’s that it gets a little difficult if you want to rename an already renamed schedule.
I hope it helps a little bit with yours
Name Assembly schedules to match the assembly name.dyn (40.1 KB)