foreach my $key ( sort { $sort_xml{$a} <=> $sort_xml{$b} } ( keys(%sort_xml) ) )