Sorting list multiple times


#1

Hello,

I am trying to take a list of sheets and sort them by one parameter and then sub sort that list by another parameter, similar to the Sort By: Then by: … under Sorting/Grouping for schedules in revit. I have come across a few posts on the site about how to do that, but I cannot get it to work. Any suggestions?

 


#2

In Dynamo, Sorting and Grouping mean different things.

You can try something like this (for two levels of sorting)…

  • Filter (to remove undesired elements)

  • Group (to create sub-lists, each of which satisfies a particular rule/parameter)

  • Sort each sub-list (to get the desired sequence, determined by some parameter)

  • Flatten if you want to get rid of the sub-lists