func (q Query) OrderInts() (r Query) {
	if q.err != nil {
		r.err = q.err
		return
	}

	vals, err := toInts(q.values)
	if err != nil {
		r.err = err
		return
	}
	sort.Ints(vals)
	r.values = intsToInterface(vals)

	return
}
// OrderInts returns a new query by sorting integers in the original
// sequence in ascending order. Elements of the original sequence should only be
// int. Otherwise, ErrTypeMismatch will be returned.
//
// Example:
//	sorted, err := From([]int{6,1,2,-1,10}).OrderInts().Results()
//	// sorted = {-1, 1, 2, 6, 10}
OrderInts returns a new query by sorting integers in the original
sequence in ascending order. Elements of the original sequence should only be
int. Otherwise, ErrTypeMismatch will be returned.


// OrderInts returns a new query by sorting integers in the original // sequence in ascending order . Elements of the original sequence should only be // int . Otherwise ErrTypeMismatch will be returned . // // Example : // sorted err : = From ( [] int { 6 1 2 - 1 10 } ) . OrderInts () . Results () // // sorted = { - 1 1 2 6 10 }
func (q Query) OrderInts() (r Query) {
	if q.err != nil {
		r.err = q.err
		return
	}
	vals, err := toInts(q.values)
	if err != nil {
		r.err = err
		return
	}
	sort.Ints(vals)
	r.values = intsToInterface(vals)
	return
}
func ( q Query ) OrderInts ( ) ( r Query ) { if q . err != nil { r . err = q . err return } vals , err := toInts ( q . values ) if err != nil { r . err = err return } sort . Ints ( vals ) r . values = intsToInterface ( vals ) return }
OrderInts returns a new query by sorting integers in the original
sequence in ascending order.
OrderInts returns a new query by sorting integers in the original sequence in ascending order .