Per MSDN.
Check the section titled Logical Processing Order of the SELECT statement
- FROM
- ON
- JOIN
- WHERE
- GROUP BY
- WITH CUBE or WITH ROLLUP
- HAVING
- SELECT
- DISTINCT
- ORDER BY
- TOP
There is an important note at the end of the paragraph preceding this list.
Note that the actual physical execution of the statement is determined by the query processor and the order may vary from this list.