Whether the ORDER BY is legal in CTE context (TOP, OFFSET, or FOR XML present)
The extracted ORDER BY clause text (everything after "ORDER BY "), or null if none
Character positions of all top-level ORDER BY keywords in the original SQL
SQL with the last top-level ORDER BY clause stripped (or original if none found)
Result of analyzing a SQL string for top-level ORDER BY clauses.