Unintended anchors traversing components order

I am building precomposed Tibetan syllables using smart components. All three in the screenshot are smart components with anchors in each. When I export the font and layer.copyAnchorsFromComponents(), I get the top anchors from the second last component though I expect them to be taken from the first one.

Would it be possible to let Glyphs take the top anchors from the first one without breaking preexisting behaviour? Or else, assuming I manually place components via scripting, is there a way to get anchors from a specified component?

スクリーンショット 2024-04-24 0.46.51

Can you send me a test font that I can play around with this?