I’m trying to get a selection of all views on sheets and all sheets with at view placed on them.
Right now I’m able to get each group of elements, but the list structure doesn’t align, which I need to continue to modify the groups.
The views has “Sheet Name” as a parameter to find out if they are on sheets, and with this parameter can then select the filtered sheets and the corresponding views by their “Sheet Name” parameter.
The problem is that the sheets are sorted by the order they are selected in, and I want to order them by the “sheet Name” parameter just like the views, which i group by their sheet name key.
Basically, I need the list of sheets to have the same order of index as the grouped list of views on the sheets.