in reply to Sorting a hash in one line

Plain old hashes can't be sorted. If you want to maintain some order, keep track of the keys in an array, and get them into whatever sorted order you wish.

Reading your code from left to right, "%hash = sort" is your first problem.


Dave