func (mwiq *MessageWithIDQuery) Order(o ...OrderFunc) *MessageWithIDQuery {
	mwiq.order = append(mwiq.order, o...)
	return mwiq
}
Order adds an order step to the query.
package ent
import (
	"context"
	"errors"
	"fmt"
	"math"
	"entgo.io/contrib/entproto/internal/entprototest/ent/messagewithid"
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type MessageWithIDQuery struct {
	config
	limit      *int
	offset     *int
	unique     *bool
	order      []OrderFunc
	fields     []string
	predicates []predicate.MessageWithID
	sql  *sql.Selector
	path func(context.Context) (*sql.Selector, error)
}
func (mwiq *MessageWithIDQuery) Where(ps ...predicate.MessageWithID) *MessageWithIDQuery {
	mwiq.predicates = append(mwiq.predicates, ps...)
	return mwiq
}
func (mwiq *MessageWithIDQuery) Limit(limit int) *MessageWithIDQuery {
	mwiq.limit = &limit
	return mwiq
}
func (mwiq *MessageWithIDQuery) Offset(offset int) *MessageWithIDQuery {
	mwiq.offset = &offset
	return mwiq
}
func (mwiq *MessageWithIDQuery) Unique(unique bool) *MessageWithIDQuery {
	mwiq.unique = &unique
	return mwiq
}