MCPcopy Index your code
hub / github.com/ent/ent / OrderBySum

Function OrderBySum

dialect/sql/sql.go:363–365  ·  view source on GitHub ↗

OrderBySum returns an ordering by the sum of the given field.

(field string, opts ...OrderTermOption)

Source from the content-addressed store, hash-verified

361
362// OrderBySum returns an ordering by the sum of the given field.
363func OrderBySum(field string, opts ...OrderTermOption) *OrderExprTerm {
364 return orderByAgg("SUM", field, opts...)
365}
366
367// OrderByCount returns an ordering by the count of the given field.
368func OrderByCount(field string, opts ...OrderTermOption) *OrderExprTerm {

Callers 3

OrderByFluentFunction · 0.92
OrderByEdgeTermsFunction · 0.92
TestOrderByNeighborTermsFunction · 0.92

Calls 1

orderByAggFunction · 0.85

Tested by 3

OrderByFluentFunction · 0.74
OrderByEdgeTermsFunction · 0.74
TestOrderByNeighborTermsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…