Stacked Windows order when exiting station


I noticed that the order of the stacked windows (which one of them is at front) when exiting a station is kind of random. For some windows, it’s the first tab, sometimes the last. I cannot find the logic behind. It’s neither alphabetical nor the order how you drag them together… I would like to have control, which window is front.

E.g., when stacking signatrue/anomalie overview (probes) and drone control, I would like to have the probes on top as default, so I can directly see the signatures after undocking.

Or is there some secret setting I’m missing?