Soorting a list?

Hello Dynamo Users, I got a simple question for the most of you i guess. I made a script that groups a couple of walls by there base constraint. It results in the list shown in these screenshots. But somehow it placed the topfloor walls in the middle of the list en the first floor walls at the bottom of the list.

After the list is made i would like too rename the mark parameter into a number based on the levels.

Kind regards,

Vincent Olthuis

Hello Vincent,

Try to compose a function that also extracts the elevation of the base constraint like so:

Thanks Dimitar, Thats exactly what I meant!