Natural sort Elements by Name

Hello Dynamo Community :slight_smile:

I want to natural sort Lists of Elements by a parameter. For example Levels by names.

I can natural sort the parameters, but how can i now sort the elements in the same way?

And another problem i have is that the natural sort will sort the negative values after the positive ones. I would like to switch that somehow:

Thanks in advance for any advice!

kind regards

1 Like

Hi @gerhard.p ,

Something like this should answer both your questions :smiley:

2 Likes

Works great :smiley:

Thank you for taking the time @Daan :slight_smile:

1 Like