OrderByField returns an ordering by the given field.
(field string, opts ...OrderTermOption)
| 356 | |
| 357 | // OrderByField returns an ordering by the given field. |
| 358 | func OrderByField(field string, opts ...OrderTermOption) *OrderFieldTerm { |
| 359 | return &OrderFieldTerm{Field: field, OrderTermOptions: *NewOrderTermOptions(opts...)} |
| 360 | } |
| 361 | |
| 362 | // OrderBySum returns an ordering by the sum of the given field. |
| 363 | func OrderBySum(field string, opts ...OrderTermOption) *OrderExprTerm { |