Expose something like global sibling index

In addition to transform.GetSliblingIndex(), is it possible to have .GetGlobalSliblingIndex() or .GetHierarchySortIndex() ?

That kind of global sibling doesn’t exist for good reasons. It depends entirely on the hierarchy order. Everything you can’t have in the hierarchy is not achievable.

how does the unity 2d sprite achieve the sort order based on the hierarchy? or internally, it just traverse transform hierarchy.