Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Sorting on Nested Element

by dsb (Chaplain)
on Sep 30, 2011 at 16:23 UTC ( [id://928852]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $data = { Elements => {
        AlphaKey => {
    ...
            OtherVal => 'morerandomthings'
        },
    }};
    
  2. or download this
    $sorted = [
        {
    ...
            OtherVal => 'randomthings'
        },
    ];
    
  3. or download this
    my @pri = sort { $a <=> $b } map { $data->{Elements}{$_}->{priority} }
    + keys %{$data->{Elements}};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://928852]
Approved by lidden
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-20 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found