In the proof of the lemma
For every limit ordinal $\alpha$, $\textrm{cf } \alpha$ is a regular cardinal
Jech says that
It is easy to see that if $\alpha$ is not a cardinal, then using a mapping of $|\alpha|$ onto $\alpha$ one can construct a cofinal sequence in $\alpha$ of length $\leq |\alpha|$, and therefore $\textrm{cf } \alpha < \alpha$.
I've spent a while trying to construct this cofinal sequence and was wondering if I was on the right path:
From a bijection $f$ between $\kappa = |\alpha|$ and $\alpha$ take $S = \{\beta \in \kappa : \ f(\gamma) < f(\beta)$ for all $\gamma < \beta\}$ then if $\xi$ is the order type of $S$ and $g$ is the isomorphism from $\xi$ to $S$ the function $f\circ g$ is a cofinal sequence in $\alpha$ and $\xi < \alpha$.
Is this on the right track, or is there an easier way of doing it?