Filter and sort one list by values from another list

Hi,
I am trying to recreate the output produced by ElementFilter.ByParameterStringValue node but without using the Rhythm node.
Basically I need the list of Title Blocks to be filtered by, and then ordered in the same numerical order as the list of Sheet Numbers.

I’ve had a number of unsuccessful attempts. This is a cry for help :grinning:

The Rhythm node does this job perfectly well. I’m just trying to solve this riddle for my own understanding.

Thanks.

Get the list of all titleblocks > use this list to get their sheet using “Element OwnerView” node > sort the list of sheets (their indices actually) by their sheet number using SortIndexByValue node > use the sorted indices to order the first list for titleblocks using GetItemAtIndex node.

Welcome to the Dynamo Community @scott.tomlinson


dictionary.dyn (16.1 KB)

1 Like

Thanks @Vikram_Subbaiah.

Brilliant, that absolutely is the answer.

I was using List.Contains and List.SortByKey with no success. I don’t understand why your solution works, but it does exactly what I was after. I’ll do some research.

Thanks again for you help.

1 Like