OrderByCount returns an ordering by the count of the given field.
(field string, opts ...OrderTermOption)
| 366 | |
| 367 | // OrderByCount returns an ordering by the count of the given field. |
| 368 | func OrderByCount(field string, opts ...OrderTermOption) *OrderExprTerm { |
| 369 | return orderByAgg("COUNT", field, opts...) |
| 370 | } |
| 371 | |
| 372 | // orderByAgg returns an ordering by the aggregation of the given field. |
| 373 | func orderByAgg(fn, field string, opts ...OrderTermOption) *OrderExprTerm { |
no test coverage detected
searching dependent graphs…