The query engine will do what it does. That's in the internals. No way to know without a debugger or insider knowledge. It will use tempdb though.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning