in reply to sorting a hash by value with ties

I may be completely misunderstanding the OP's question, but it seems to me it may be related to the sorting of tied hash values.

If so, sorting only the tied values of a hash might be something like this (UNTESTED):

my @sorted_tied_values = sort { $a cmp $b } grep { tied $_ } values %hash;