reindex curve indicies by.gh (8.2 KB)

Hi, guys! Could please help me with this stuff. I need to rearrange indices of curves to be the same as indices of near standing points. Count of points always the same as the count of curves. The solution should be universal, “not replacing one by one”. Thanks in advance!