Sort Revit levels by specific order

Hello All,

I am trying create a definition that generates plan views based on project levels. All works well apart from the order in which Dynamo generates the views.

I’d like dynamo to generate my views starting from foundation level, B2, B1 and so on. Is there a way this can be achieved??

many thanks

Yes, extract the elevation of each Level then sort by key using the elevations.

1 Like

SortByKey or SortByFunction

1 Like

Thank you guys!

I used SortByFunction as the next node is a single input node.

thanks again!