[DDC-1985] Fix ordering preservation in SQL limit subquery output walker.
Merge branch 'DDC-1985' into 2.4