Secondary-action order and icon presentation differ between main iframes and app window

When supplying the same ordered secondary-actions in the main app iframe and an app window, they are not shown in the same order.
The app window displays them in reversed order.

Is that intentional?
What markup should an app use to preserve the original order without frame-specific workarounds?

And also button groups are collapsed into a dropdown.
That doesn’t make sense to me, as the app window should have more horizontal space than the main app iframe in most scenarios.

I understand both behavior on narrow screens and a “mobile” presentation, as actions are moved to the left of the screen and have less horizontal space.