Skip to main content
added 43 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

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

05AB1E, 19 17 bytes

áΣl}.γl}éεgyθ‚}JJ

Try it online! or as a Test 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
                  # paired with
           yθ      # the last letter
               JJ  # join to string

05AB1E, 19 17 16 bytes

Saved 1 byte thanks to Kevin Cruijssen

áΣl}.γl}éεgyθJ}J

Try it online! or as a Test 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     # joined with
           yθ      # the last letter
               J   # join to string
added 423 characters in body
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

05AB1E, 1919 17 bytes

áΣl}.γl}εgyθ‚}Σléεgyθ‚}JJ

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
             ‚     # paired with
           yθ      # the last letter
               JJ  # join to string

05AB1E, 19 bytes

áΣl}.γl}εgyθ‚}Σl}JJ

Try it online! or as a Test Suite

05AB1E, 19 17 bytes

áΣl}.γl}éεgyθ‚}JJ

Try it online! or as a Test 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
             ‚     # paired with
           yθ      # the last letter
               JJ  # join to string
Source Link
Emigna
  • 53k
  • 5
  • 43
  • 162

05AB1E, 19 bytes

áΣl}.γl}εgyθ‚}Σl}JJ

Try it online! or as a Test Suite