my %h = %{$self->{hash_ref}}; my @keys = sort { $h{$a} <=> $h{$b} } keys %h;