removeOrderBy method

Sqler removeOrderBy(
  1. QOrder orderBy
)

Removes a specific ORDER BY specification from the query by comparing SQL output.

orderBy The ORDER BY specification to remove. Returns this to enable method chaining.

Example:

query.removeOrderBy(QOrder('name')); // Removes name from ORDER BY

Implementation

Sqler removeOrderBy(QOrder orderBy) {
  _orderBy.removeWhere((e) => e.toSQL() == orderBy.toSQL());
  return this;
}