Adds support for order_by in query language.
Adds unit test for order by support.