Skip to main content
4 of 6
added 70 characters in body
hucko
  • 31
  • 2

Scala, 103 bytes

_.filter(_.isLetter).groupBy(_%32).values.map(l=>l.size+""+l.last).toSeq.sortBy(s=>(s.size,s)).mkString

94 bytes -> 103 bytes but it handles > 10 occurrences of a letter now.

Try it online!

hucko
  • 31
  • 2