func (e *Encoder) SetFieldSortOrder(s FieldSortOrder) {
	e.fieldSortOrder = s
}
SetFieldSortOrder sets a sort order for the data.
The options are:
NoSortFields (doesn't sort the fields)
SortFields (sorts the keys in alphabetical order)
package protocol
import (
	"fmt"
	"io"
	"math"
	"sort"
	"strconv"
	"time"
)
var ErrIsNaN = &FieldError{"is NaN"}
var ErrIsInf = &FieldError{"is Inf"}
type Encoder struct {
	w                io.Writer
	fieldSortOrder   FieldSortOrder
	fieldTypeSupport FieldTypeSupport
	failOnFieldError bool
	maxLineBytes     int
	fieldList        []*Field
	header           []byte
	footer           []byte
	pair             []byte
	precision        time.Duration
}
func (e *Encoder) SetMaxLineBytes(i int) {
	e.maxLineBytes = i
}