How do I select the highest point from a group of BREP objects?

Hi All,
from the multi-input brep, I want to select only the block inside the curve and from the inside group. i want to pick the top point/surface of the block inside the group.


I am at a beginner stage and I hope to learn with the help of this community group. Love you all.

Deconstruct the points, sort by Z value and get the first item of the reversed list.

Great!
The points are in order, but I need the top point or surface of the Z-axis.