Fix Oracle subquery ordering lost bug

See http://www.doctrine-project.org/jira/browse/DDC-1800 for a full description.
Fix Oracle subquery ordering

See http://www.doctrine-project.org/jira/browse/DDC-1800 and http://www.doctrine-project.org/jira/browse/DDC-1958#comment-19969
Accompanying tests for PR #646
Merge pull request #646 from raykolbe/master

Oracle Pagination bug when ordering is present