$A\cup B=C$
Suppose some function $f$ totally orders equivalence classes of $A$ and equivalence classes of $B$, both of which are formed by the same equivalence relation $\sim$.
The domain and range of $f$ is $C$
The range of $f$ in $A$ is $A$
The range of $f$ in $B$ is $B$
Does this imply that $f$ totally orders equivalence classes of $C$ formed by the same equivalence relation?