in reply to Re: sorting hash by value when value is an array ref
in thread sorting hash by value when value is an array ref

I must say, I'm amazed by the quick response. This is my first questoin on this board. But back to the question. I had already been trying that bit of code the two of you posted and it doesn't seem to work. My list of keys still isn't sorted by the date. Any clue why? I also tried cmp and <=>.
  • Comment on Re^2: sorting hash by value when value is an array ref

Replies are listed 'Best First'.
Re^3: sorting hash by value when value is an array ref
by ikegami (Patriarch) on Nov 16, 2004 at 07:24 UTC

    Update: Sorry, I see you've already done that.

    The code jdporter and Zaxo provided will indeed do what you ask. There's either an error in your description, or an error in the input you're using. Why don't you provide us a runnable snippet (complete with inputs) so we can continue to help you.