Sort view list

Hey Forum.
im trying to sort a list in dynamo, that dosent seems to sort it the way i wanted… When im using Element.Name and then sort the list it works fine. the problem is then, when im using the Element.Name Dynamo gives me a fail. Without Element.name the rest works fine - but the list isn´t sorted and i need it to be. Hope someone can help me with this issue and thanks alot :slight_smile: and yeah, im new in Dynamo -.-

Hello, try this:

2 Likes

Try this

FP=IN[0]
FPNames=IN[1]
OUT=[x for (y,x) in sorted(zip(FPNames,FP))]

Thanks for ur input, they worked just the way i wanted :slight_smile: