I don't know if this is at all helpful, but when I try this:
set @s = ' ';
select @s = @s + s from #test order by dbo.wtfunc(s);
select @s AS myTest
I get this (note there are spaces prepending the 'foo' and none trailing):
foo
I guess this is some obscure little bug?!
Darth Continent
2009-06-11 17:29:04