Consider a set $A$ and a relation $r$.
The relation $r$ is complete, i.e., for any $a,b\in A$, we have $arb$ or $bra$ or both.
The relation $r$ is transitive, i.e., for any $a,b,c\in A$, if $arb$ and $brc$, then $arc$.
Must there exist a function $f:A\rightarrow\mathbb{R}$ such that for any $a,b\in A$, we have $arb$ if and only if $f(a)\geq f(b)$?
If $A$ is countably infinite, the answer is yes. I'm wondering what about if $A$ is uncountably infinite? I'm almost sure there must be a counterexample, but I don't know how to find one. (For example, if $A=\mathbb{R}$, then the trivial map $f(x)=x$ works.)