Inspired by this I have created an API for Skia:
GroupOrder is a wrapper over Group that sorts layers on the basis of their z-index. If not defined, z-index would be 0.
zorder.vl (38.5 KB)
Could you open GroupOrder and ZOrder nodes and give feedback on if they can be improved? I want to do only the necessary amount of work in them.
Their definitions are simple and should be easy to follow. Let me know if anything is unclear. Thanks!