This is why I hate the (excessively verbose) DOM:
my @sorted = map { $_->[1] } sort { $a->[0] cmp $b->[0] } map { my $item = $nodes->item( $_ ); [ $item->getAttributeNode( 'name' )->getValue(), $item ] } 0 .. $nodes->getLength() ;
In reply to Re: XML::DOM sort
by chromatic
in thread XML::DOM sort
by Murcia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |