I am trying to prove that an infinite subset $T \subset \mathbb{N}$ is countable using the Well-Ordering Principle. The strategy is to define $f: \mathbb{N} \to T$ as follows. We let $f(1)$ be the least element of $T$, $f(2)$ be the least element of $T \setminus f(1)$, and upon defining $f(1), \ldots, f(k)$ in this manner, we define $f(k+1)$ to be the least element of $T \setminus \{f(1), \ldots, f(k)\}$.
It's clear to me, intuitively, that this is a bijection. I just can't figure out how to prove it. So, by definition, upon defining $f(m+1)$, I require $f(m+1) \neq f(m)$, so if $a \neq b$, and WLOG $a < b$, then $f(a) \neq f(b)$ and, in fact, $f(b) > f(a)$ by construction. So $f$ has to be injective. As for surjectivity, I can say, "well, I've exhausted all of $\mathbb{N}$ by induction and $T \subset \mathbb{N}$, so I've definitely defined it for all of $T$. It sounds like I'm assuming my conclusion because I'm likely to break injectivity by exhausting $\mathbb{N}$. But, I guess if I prove injectivity/surjectivity separately, that isn't a huge problem. But then, how do I know I've exhausted all of $T$ as the image of some $n \in \mathbb{N}$?
Can anyone help me sort this out?