Find highest point on a mesh

Just looking at your nodes I have a question since I’m trying to learn this.

What are you sorting exactly between the deconstructed vertices and the deconstructed z points?

This is a key / value sorting. The keys are the Z coordinates of the points. The values are the points themselves and they get sorted according to the keys.