use HTML::Entities qw( encode_entities ); for my $id ( sort { $HASH{$a}{COUNT} <=> $HASH{$b}{COUNT} } keys(%HASH) ) { print "