Added clear methods to clear parameters in the database object: clearTableFields, clearGroupBy, clearExpressions
Added deep clone method.
Added clearOrderBy method
Added showCount and showDistinct methods. Triggering these will surround the field in count() and/or distinct. Initially, I was going to let Expression handle this, but it is helpful to have the alias and table information in the logic.
addOrderBy now requires a field object. This allows use of the field's alias if set.
Added new method resetOrderBy
Rewrote how total rows are tabulated.
changed addOrderBy
changed addOrderBy
changed addOrderBy