hello emre!
I’m also one of the new guys in this forum and I’m not quite sure I can help you, other than giving you this link so as to know how to ask questions with better chances of getting help:
however, if I understood correctly and you want to group points with the same height use “sort list” with their z value as input