The question is: how can I get this sort order automatically?
The only way I found to get that done is manually sorting components, otherwise what I get is:
As shown in the image, when working with indented BOMs, before sorting, it seems that SW group components by type (parts first, assembly...). What I want is to order by part number regardless of the component type.
Note: I have some dissolved assemblies, I don't know if this can affect the proper sorting order.