nl_tokens: we need one ORDER BY clause on at the very end to make sure everything comes back in the correct order ordering inner ( sub ) queries DOES NOT guarantee the order of those results in the outer query
pl_tokens: function stringifyOuterOrder ( orders , q ) { const conditions = [ ] for ( let <mask> of orders ) { for ( let column in condition . columns ) { const direction = condition . columns [ column ] conditions . push ( ` ${ q ( condition . table ) } ${ q ( column ) } ${ direction } ` ) } } return conditions . join ( ', ' ) }