Implemented support for ORDER BY