Help for this page

Select Code to Download


  1. or download this
    my @nodes = map {
        $_->[0]
    ...
    } map {
        [ $_->{node_id}, $_->{depth}, $_->{sibling_order} ]
    } $sth->fetchall_hashref();
    
  2. or download this
        $a->{depth} <=> $b->{depth}
            ||
        $a->{sibling_order} <=> $b->{sibling_order}