An ORDER BY's text with every column qualifier dropped, so it can order a query that wraps the
original as a derived table: ORDER BY a.Name, [a] /*c*/ . [ID] becomes ORDER BY Name, [ID].
Function names keep their schema (dbo.fnLen(a.Name) becomes dbo.fnLen(Name)).
An ORDER BY's text with every column qualifier dropped, so it can order a query that wraps the original as a derived table:
ORDER BY a.Name, [a] /*c*/ . [ID]becomesORDER BY Name, [ID]. Function names keep their schema (dbo.fnLen(a.Name)becomesdbo.fnLen(Name)).