Analyzes SQL for top-level ORDER BY clauses, handling both SQL+Nunjucks (composition engine's input) and clean SQL (paging engine's input).
SQL to analyze (may contain MJ template tokens)
Full analysis including positions, stripped SQL, and CTE legality
Analyzes SQL for top-level ORDER BY clauses, handling both SQL+Nunjucks (composition engine's input) and clean SQL (paging engine's input).