Skip to main content
Bounty Ended with 100 reputation awarded by lyxal
added 63 characters in body
Source Link

Vyxal a, 15 bytes

µ‛ch‛c~V‛ll‛l~V

Takes input as words separated by newlines, outputs a list.
Try it Online!

µ‛ch‛c~V‛ll‛l~V    # Full program
µ                  # Sort (implicit) input by key:
       V           # Replace...
 ‛ch               # `ch`...
    ‛c~            # with `c~`
              V    # Replace...
        ‛ll        # `ll`...
           ‛l~     # with `l~`

Vyxal a, 15 bytes

µ‛ch‛c~V‛ll‛l~V

Try it Online!

µ‛ch‛c~V‛ll‛l~V    # Full program
µ                  # Sort (implicit) input by key:
       V           # Replace...
 ‛ch               # `ch`...
    ‛c~            # with `c~`
              V    # Replace...
        ‛ll        # `ll`...
           ‛l~     # with `l~`

Vyxal a, 15 bytes

µ‛ch‛c~V‛ll‛l~V

Takes input as words separated by newlines, outputs a list.
Try it Online!

µ‛ch‛c~V‛ll‛l~V    # Full program
µ                  # Sort (implicit) input by key:
       V           # Replace...
 ‛ch               # `ch`...
    ‛c~            # with `c~`
              V    # Replace...
        ‛ll        # `ll`...
           ‛l~     # with `l~`
Source Link

Vyxal a, 15 bytes

µ‛ch‛c~V‛ll‛l~V

Try it Online!

µ‛ch‛c~V‛ll‛l~V    # Full program
µ                  # Sort (implicit) input by key:
       V           # Replace...
 ‛ch               # `ch`...
    ‛c~            # with `c~`
              V    # Replace...
        ‛ll        # `ll`...
           ‛l~     # with `l~`