I'm trying to understand this math.SE answer by Captain Lama. The question is about how to prove that always either $|X| \leq |Y|$ or $|Y|\leq|X|$ for arbitrary sets.
Captain Lama firstly remarks that—due to the axiom of choice—the problem reduces to showing that if there is no surjective map $X\twoheadrightarrow Y$, then there is however an injection $X\rightarrowtail Y$. Now he defines a partial order $(A, f)\leq(B, g)\iff(A\subseteq B\land g|_A = f)$ on the set $E:=\{(A, f) : A\subseteq X, f : A \to Y\text{ injective}\}$. I guess he does this to apply Zorn's lemma, because as a next step he says:
Clearly this order is inductive (just take the union in a chain to get a supremum), so there is a maximal element $(A,f)$.
I don't know what "inductive" means in this context but I think he means that each chain has an upper bound (why does he speaks about "supremum"?). So my question is: How to prove that each chain $T\subseteq E$ has an upper bound? Does one need totality ($\forall x, y\in T: x\leq y\lor y\leq x$) in the proof? Captain Lama says that one should take the union. So the domain of $(A, f)$ is going to be $A = \bigcup_{t\in T}\pi_1(t)$, I guess, but what can we take as function $f?$