On Jul 22, JupiterHost.Net said: >my %data = ( > 'foo' => { sorton => 2, data => 'blah' }, > 'bar' => { sorton => 1, data => 'yike' }, > 'baz' => { sorton => 3, data => 'zipp' }, >); > >I'd like to sort them on the sorton key so it is:
sort { $data{$a}{sorton} <=> $data{$b}{sorton} } keys %data -- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>