Adding support for orderBy clauses.