05AB1E, 19 1717 16 bytes
Saved 1 byte thanks to Kevin Cruijssen
áΣl}.γl}éεgyθ‚éεgyθJ}JJJ
Try it online!Try it online! or as a Test SuiteTest Suite
Explanation
á # keep only letters in input
Σl} # sort by lower-case
.γl} # group by lower-case
é # sort by length (stable)
ε } # map each to
g # its length
‚J # pairedjoined with
yθ # the last letter
JJJ # join to string