Can not ? Problem with list

I make a dynamo node for make duplicated views and place them in new sheet with same location in orginal sheet. Al ready finish, but has a BIG problem !!

Example: i has view A and view B with ID elemnet : 001, 002 because view B be made after view A.

Then i put them into on sheet with view B first and then view A => Viewport of view B is 0010 and Viewport of view A is 0011 ( i just for example).

So my dynamo node is duplicate view A and view B =>> view A1 and view B1, get location of viewport A and location of viewport B, and then place view A1 and view B1 with location of viewport A and location of viewport B, but not like my dream. The dynamo with place view A1 with location of viewport B, view B1 with location of viewport A.

Because the order of view A and view B not SAME the order of viewport A and viewport B. Dynamo just sort list with ID by ascending.

My dynamo node i posted below, someone has an idea ??

Select-view-on-sheet - duplicate - place on sheet (Finish1)

I solved that issue, thanks all for reading !!