Checks if the query has any ORDER BY specifications.
bool hasOrderBy() { return _orderBy.isNotEmpty; }