Add multiple fields support to orderBy.
Add group by support.