Multiple List sorting

Hello Dynamo Gurus,

I have a quick question regarding sorting lists, I am placing multiple views on multiple sheets referencing different viewports. So I have three different lists, I want them to be in a same order. is that possible?


It’s a bit tricky to explain. The method I was using, It was working fine with only Ground Floor plans but now I have First Floors too.
All I want these lists to achieve their corresponding values.
Thanks

Hi @chhabrat ,

See if this node helps out:
https://dictionary.dynamobim.com/2/#/BuiltIn/Action/SetIntersection

@chhabrat @Daan ,

…intresting,

what is the intersection between views and sheets there originpoint? or is there a boolean “I am placed on a sheet” ?

def intersection(lst1, lst2):
    lst3 = [value for value in lst1 if value in lst2]
    return lst3
 
lst1 = IN[0]
lst2 = IN[1]
OUT = (intersection(lst1, lst2))

nah, didn’t work… In the end I had to split the script into two halves. FF and GF, then it worked fine. I am not sure why it wouldn’t work together.
Thanks anyway for your time guys. I really appreciate it.