descOrder property

FieldOrder get descOrder

Get sql statement to order records in descending way.

For example:

order: (q) => [q.firstName.descOrder]

Implementation

FieldOrder get descOrder {
  var result = FieldOrder();
  result.queryBuilder = () => '${buildQuery()} DESC';
  result.parametersBuilder = () => [...getParameters()];
  return result;
}