How can I sort a Perl hash on values and order the keys correspondingly (in two arrays maybe)?
First sort the keys by the associated value. Then get the values (e.g. by using a hash slice). Or if you have a hash reference.
First sort the keys by the associated value. Then get the values (e.g. by using a hash slice). Or if you have a hash reference.