Remap numbers

How can I change the order in which connection points?
As you can see i try to make a curve from point, (that was two different curve but with the same number)
I would like to make a one curve that close.
many tnx

attach file

180815_cagebeads_ns.gh (68.7 KB)
Hi Petras,
Is the group in yellow

Thank you very much!

Internalize values in yellow group, delete the rest, and upload again

queistion.gh (13.1 KB)
Uploading…

queistion.gh (13.1 KB)