final class OrderByRule
    implements RewriteRule

sql_yacc.yy alter_order_list shifts comma plus identifier before reducing alter_list. Keeping ORDER BY last prevents a following nonreserved action from becoming an order item.

Methods§

public function reorder(TerminalSequence $sequence, int $id): TerminalSequence

Stably moves complete ORDER BY actions after other actions, retaining original terminal identities.

Parameters

$sequenceTerminalSequence
$idint
Test cases 1
Called from 1
Calls 6

Test cases 10§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 6

Relations§

Instantiated in 1