Let $P$ be any partially ordered set. For any map $x\colon P\to [0,1]$, put $\sigma(x)=\{p\in P:x(p)>0\}$. Then $BP$ can be identified with the set of maps $x$ such that $\sigma(x)$ is finite and totally ordered, and $\sum_px(p)=1$. Now suppose that $a$ is an element of $P$ which is comparable with every other element, and define $e\colon P\to [0,1]$ by $e(a)=1$ and $e(p)=0$ for $p\neq a$. It is then easy to see that the map $h_t(x)=(1-t)x+te$ preserves $BP$ and gives a contraction. This construction is most often used when $a$ is largest or smallest in $P$, but you really only need it to be comparable with every element of $P$. In particular, if $P$ is nonempty and totally ordered then you can choose $a$ arbitrarily.
As another way to look at this, if $f,g\colon P\to Q$ are two poset maps, and $f(p)\leq g(p)$ for all $p$, then it is standard that $Bf$ is homotopic to $Bg$. If $P$ is totally ordered, we can define $f,g,h\colon P\to P$ by $f(p)=p$ and $g(p)=\max(a,p)$ and $h(p)=a$. Then $f\leq g\geq h$, so $Bf$, $Bg$ and $Bh$ are homotopic, but $Bf$ is the identity and $Bh$ is constant.