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 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:


Try this

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

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