Get the parameter of the front and back points from the set point

Hello, maybe someone knows how to get 1 list with the parameters of a point on the line from the nearest front and back points from the 2 list

@AlekseyLevi ,

not so easy to recreate your issue quick :wink:

here is a try…

in python i used
OUT = sorted(IN[0])


KR
Andreas

Let me explain what my goal is
I have 2 groups of points: all points and a group of points from which I need to find the previous point on the line and the next, I found the parameter 1 and 2 groups and sorted it, now I do not know how to take the list 1 from the screenshot of the group of points from which I’m going to search for the nearest points and add to it data from 2 lists (previous and next point)