/// <summary>
 /// Adds a COUNT(*) to the ORDER BY clause of the query
 /// </summary>
 /// <param name="countAll">A reference to a <seealso cref="DynamicQuery"/> object</param>
 /// <param name="direction">A <seealso cref="WhereParameter.Dir"/> indicating which direction to sort the results</param>
 public override void AddOrderBy(DynamicQuery countAll, NCI.EasyObjects.WhereParameter.Dir direction)
 {
     if (countAll.CountAll)
     {
         base.AddOrderBy("COUNT(*)", direction);
     }
 }
 /// <summary>
 /// Adds an aggregate parameter to the ORDER BY clause of the query
 /// </summary>
 /// <param name="aggregate">An <seealso cref="AggregateParameter"/> to add to the GROUP BY clause</param>
 /// <param name="direction">A <seealso cref="WhereParameter.Dir"/> indicating which direction to sort the results</param>
 public override void AddOrderBy(AggregateParameter aggregate, NCI.EasyObjects.WhereParameter.Dir direction)
 {
     base.AddOrderBy(GetAggregate(aggregate, false), direction);
 }
 /// <summary>
 /// Adds a field to the ORDER BY clause of the query
 /// </summary>
 /// <param name="fieldName">The field to add to the ORDER BY clause</param>
 /// <param name="direction">A <seealso cref="WhereParameter.Dir"/> indicating which direction to sort the results</param>
 public override void AddOrderBy(string fieldName, NCI.EasyObjects.WhereParameter.Dir direction)
 {
     base.AddOrderByFormat(fieldName, direction);
 }