ByUserField orders the results by user field.
(field string, opts ...sql.OrderTermOption)
| 167 | |
| 168 | // ByUserField orders the results by user field. |
| 169 | func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption { |
| 170 | return func(s *sql.Selector) { |
| 171 | sqlgraph.OrderByNeighborTerms(s, newUserStep(), sql.OrderByField(field, opts...)) |
| 172 | } |
| 173 | } |
| 174 | func newUserStep() *sqlgraph.Step { |
| 175 | return sqlgraph.NewStep( |
| 176 | sqlgraph.From(Table, FieldID), |
nothing calls this directly
no test coverage detected