Yeah that should work I think. Maybe more interesting would be whether there exists an example which is not locally homeomorphic to IR (I think you're example still fulfills that). But I believe that is solved by using something like the long line and looking at e.g. ω0\times 0. Is there an example that is nowhere locally homeomorphic to IR?
The range of such a function isn't guaranteed to to not be a real line again, though, and mapping it into a single point is an definite counterexample.
Or do you mean some kind of ordering of the space of all such functions, maybe?