Sort list of element by their type name

I’m trying to sort this list of doors by their type names, whilst retaining the groups they are in (they are lists of doors per room) Can anyone help - I’m sure this is basic stuff but I just can’t figure it out.

Hi @Phillip_Sheridan

List.SortByKey node or SortByFunction node will do the job.

I don’t know how to make that work

Hey there,

Just like @Kulkul said, SortByFunction is a good way to do it.

Here is an example with walls.

Cheers

1 Like

Thanks guys - I was on the right track but it the lacing was stopping it from working properly.