in reply to Re: sorting a split hash
in thread sorting a split hash
coldfingers will have to decide whether they want to swap the $a and $b, now that sulfericacid has mentioned it matters. Oh, and I really think that should be a <=> first as the value returned from str2time (thank you for pointing it out!) seems to be a number. Don't want any problems with dates before September 2001.sort { $b->[1] <=> $a->[1] || $a->[0] cmp $b->[0] }
|
|---|