Upon renaming a Prim in the Hierarchy model it moves it to the end of the hierarchy instead of just renaming, keeping its index.
This is likely due to usd_qtpy.lib.usd.rename_prim going through usd_qtpy.lib.usd.move_prim_spec logic which ends up using Sdf.NamespaceEdit.ReparentAndRename but should actually - when staying under the same parent, use Sdf.NamespaceEdit.Rename which likely makes the prim keep its index among its siblings.
Upon renaming a Prim in the Hierarchy model it moves it to the end of the hierarchy instead of just renaming, keeping its index.
This is likely due to
usd_qtpy.lib.usd.rename_prim
going throughusd_qtpy.lib.usd.move_prim_spec
logic which ends up usingSdf.NamespaceEdit.ReparentAndRename
but should actually - when staying under the same parent, useSdf.NamespaceEdit.Rename
which likely makes the prim keep its index among its siblings.