in reply to Re: algorithm question: want to sort keys of hash by their values.
in thread algorithm question: want to sort keys of hash by their values.

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^2: algorithm question: want to sort keys of hash by their values.
  • Download Code

Replies are listed 'Best First'.
Re^3: algorithm question: want to sort keys of hash by their values.
by ikegami (Patriarch) on Jul 19, 2007 at 21:46 UTC

    Two errors: my $keys should be my @keys, and it's sorting by descending key while it should sort by descending value.

Re^3: algorithm question: want to sort keys of hash by their values.
by Joost (Canon) on Jul 19, 2007 at 22:43 UTC
      Yes, I am seeking keys sorted by their values.
Re^3: algorithm question: want to sort keys of hash by their values.
by yaneurabeya (Novice) on Jul 19, 2007 at 23:11 UTC
    Yes, you're correct on all counts >_>..