MCPcopy Create free account
hub / github.com/ent/ent / OrderByField

Function OrderByField

dialect/sql/sql.go:358–360  ·  view source on GitHub ↗

OrderByField returns an ordering by the given field.

(field string, opts ...OrderTermOption)

Source from the content-addressed store, hash-verified

356
357// OrderByField returns an ordering by the given field.
358func 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.
363func OrderBySum(field string, opts ...OrderTermOption) *OrderExprTerm {

Callers 15

OrderByEdgeTermsFunction · 0.92
ByIDFunction · 0.92
ByOidFunction · 0.92
ByIDFunction · 0.92
BySourceFunction · 0.92
BySourceURIFunction · 0.92
ByTextFunction · 0.92
ByIDFunction · 0.92
ByMixedStringFunction · 0.92
ByMixedEnumFunction · 0.92
ByActiveFunction · 0.92
ByAgeFunction · 0.92

Calls 1

NewOrderTermOptionsFunction · 0.85

Tested by 2

OrderByEdgeTermsFunction · 0.74
TestOrderByNeighborTermsFunction · 0.74