Order list B like A list

Hi everyone

I’m creating a new script. duplicanting some views to some sheets, in the same place

Duplicate views must to be in the same place, so I have to equal these lists

How could I order the list B as A? (the same order)
image

thank u in advance

Try sort by key node

@nlardiesU5J7A Try this:

1 Like

Thank you!

1 Like

you could also use a dictionary to associate elements in B with elements in A, then generate the list based on the ordering in A