my $t = parse XML::Twig::Elt(\*DATA); $t->sort_children_on_att('attribute'); $t->print; [download]
In reply to Re: xml sorting using XML::Twig by Loops in thread xml sorting using XML::Twig by Anonymous Monk