Fixed issue where orderBy statements do not get sent to the server for queries with no operands