🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

I don't quite understand your issue, since the "move layer to front" action modifies the map and not a tilesheet. Also, neither Tiled nor tIDE use the yaml files, so I don't think the problem could be there. Could you report the issue and the steps to reproduce it at https://github.com/bjorn/tiled/issues? It's better to discuss it there.