randomOrder property

FieldOrder get randomOrder

Get sql statement to order records in random way.

For example:

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

Implementation

FieldOrder get randomOrder {
  var result = FieldOrder();
  result.queryBuilder = () => 'RANDOM()';
  return result;
}