Naming beams by lexical ordenation - HELP

I need to name beams by lexical ordenation - Up to down and left to right.

I saw some videos of how I can select the beams and ordenate them using the .Location node but I cannot connect the final ordenation list - of points - to the SetParameter node.

Is there a way of how I can read these location and turn them into the Elements back?

To explain my routine the upper routine is the list of data I want to insert. The bottom is the ordenation of points that I cannot connect to the SetParameter.