In src/sage/combinat/words/morphism.py, there is the following code:
and
return FiniteWords(sorted(codom_alphabet))
These will break with #22029.
CC: @videlec
Component: combinatorics
Author: Sébastien Labbé
Branch/Commit: db81e7d
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/26936