Excellent, Lee. Thanks for sharing.
You're welcome
Curious, what is the order of the list that (_xrefhierarchy) returns? Is it random based on how tblnext finds the refs?
The order in which they are encountered in the block symbol table, in reverse (though, a simple sort could easily be applied).
Also, does it always list the "deepest" (child) references first, followed by any parent xrefs w child xrefs?
No - the list is merely the order in which they are encountered in the block symbol table; the nesting hierarchy is determined by recursively querying list items with multiple entries against the original list when printing the output.