Print the occurences of every character
for ( let it of new Map ( [ ... mp . entries ( ) ] . sort ( ) ) ) { document . write ( " " + it [ 0 ] + " " ) ; for ( let j = 0 ; j < it [ 1 ] . length ; j ++ ) { document . write ( " " + it [ 1 ] [ j ] [ 0 ] + " " + it [ 1 ] [ j ] [ 1 ] + " " ) ; } document . write ( " " ) ; } }