Before copying tabs of all windows, it’s better to sort windows by their number of tabs instead of using windows in random order. (Window IDs are not suitable for this as they change on browser restart.) This will maintain usually the same window order, which is important for comparing copied lists of tabs.