Only way i know its possible is way you most likely will not want to do
Here i store ID vars in a string variable separated by S + ID + E
SO we get S1ES2ES3E
And so go on
S as in start E as in end
Sooo
You could literally store whole row using that method under single child variable
And then sort child it out using array tools extension
By part of child value which would be SubStr(ThisChildVar,0,StrFind(ThisChildVar,S)-1)
And now they are sorted
Where you would still need to extract them using same logic more or less by splitting them one by 1 by checking Next S and next E from it
Cutting what is in between them
LIKE i SAID
Something most likely you will not want to do it this way