Sorting sublists according to z value

This should have been easier but i don’t know what i am missing. I want to order sublists of points according to their Z value. Eventually the aim is to eliminate one of the points with the z-value of zero (by some sort of list trimming) to obtain nice 4 items lists (They should be the insertion points of an adaptive family later) with only one point of zero z-value.
Any ideas how could this work and why the list map gives nulls?

Hi

try this ensuring you set lacing to longest

That worked perfectly! I’ve been banging my head against the wall for a couple of hours. Thanks Paul!

your welcome. can you mark this issue as resolved. thanks

Hi,

I have also spent last two hours trying to find a solution and this worked for me. Thank you very much.