in reply to Re^2: a hash with priority
in thread a hash with priority

some variables contain others

Agreed, and as graff's second update points out, this is a dependency ordering problem which can better be solved with graph techniques that don't involve priority numbering.