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 (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 (13.1 KB)
Uploading… (13.1 KB)