in reply to Re: sort hash elements...
in thread sort hash elements...

Hi Chady,

Thanks! I tried out your second piece of code. The error is gone and I was able to print the results. However, my intention was to sort the results accoding to score in descending order, and not according to alphabetical order. Thus the output should be "Keith 90, Cliff 76, John 52, Rob 52).

cheers,

kiat