Hi,
Adding a Layout Block is a QCAD Pro feature and these are not readily documented.
But it won't be rocket science ...
The single mandatory Layout in a new file is called
Layout1(*Paper Space) with order 0.
On creation of a new Layout an order is assigned that is 1 higher as what already exist in the drawing at that time.
The addition
(*Paper Space) is also increased 1 up starting from -1 (="") to
(*Paper Space0) and cannot be edited.
In the example below I added 'Layout2' and 'Layout3' chronologically but changed their list order to 0 afterwards.

Clearly
NOT sorted on Layout name nor on Paper Space number.
I can not easily retrieve the object handles but assume that they are also chronological upon creation.

- All Tab order = Zero
- LayoutOrderZero.png (9.64 KiB) Viewed 14748 times
Certain Blocks are not listed and filtered out in
BlockList.js.
Finally traced back to a
sorting function called in line 247 (Current state):
-
model space always first
-
layouts always before other blocks
-
sort among layouts by tab order
-
sort by layout name or block name (ignoring * at start)

Notice that the last rule will never be reached when comparing 2 Layout objects with the same 'tab order'.
The third rule will return
false anyway and things are left unsorted as they are queried from the document.
Meaning that we can force any listing order but only by editing the list order values.
Below I forced a reverse order with
unique values 0-2.

- Inverse Tab orders
- LayoutOrderInverse.png (11.78 KiB) Viewed 14748 times
HowTo:
- Select the Layout in the Block List.
- Rename Block (
BN) or hit the [a|b] button.
- Adapt the list order and make it chronological as for your needs.
It may be an idea to file a feature request to sort Layouts with the same 'tab order' alphanumerical like other Blocks ...
... As stated and intended in the code.
Regards,
CVH