in reply to Re^2: sorting hash by a certain value (that it is in an array)
in thread sorting hash by a certain value (that it is in an array)

A hash cannot be sorted, as its keys have no order. You need to generate your list from the hash, then sort that list. This is a FAQ. Please (again!) read perlfaq4, this time on How do I sort a hash (optionally by value instead of key)?.

  • Comment on Re^3: sorting hash by a certain value (that it is in an array)