added support for ORDER BY to combination queries