func (q Query) OrderStrings() (r Query) {
	if q.err != nil {
		r.err = q.err
		return
	}
	vals, err := toStrings(q.values)
	if err != nil {
		r.err = err
		return
	}
	sort.Strings(vals)
	r.values = stringsToInterface(vals)
	return
}
// OrderStrings returns a new query by sorting integers in the original
// sequence in ascending order. Elements of the original sequence should only be
// string. Otherwise, ErrTypeMismatch will be returned.
//
// Example:
//	sorted, err := From([]string{"foo", "bar", "", "baz"}).OrderStrings().Results()
//	// sorted = {"", "bar", "baz", "foo"}
OrderStrings returns a new query by sorting integers in the original
sequence in ascending order. Elements of the original sequence should only be
string. Otherwise, ErrTypeMismatch will be returned.


// OrderStrings returns a new query by sorting integers in the original // sequence in ascending order . Elements of the original sequence should only be // string . Otherwise ErrTypeMismatch will be returned . // // Example : // sorted err : = From ( [] string { " foo " " bar " " " " baz " } ) . OrderStrings () . Results () // // sorted = { " " " bar " " baz " " foo " }
func (q Query) OrderStrings() (r Query) {
	if q.err != nil {
		r.err = q.err
		return
	}
	vals, err := toStrings(q.values)
	if err != nil {
		r.err = err
		return
	}
	sort.Strings(vals)
	r.values = stringsToInterface(vals)
	return
}
func ( q Query ) OrderStrings ( ) ( r Query ) { if q . err != nil { r . err = q . err return } vals , err := toStrings ( q . values ) if err != nil { r . err = err return } sort . Strings ( vals ) r . values = stringsToInterface ( vals ) return }
OrderStrings returns a new query by sorting integers in the original
sequence in ascending order.
OrderStrings returns a new query by sorting integers in the original sequence in ascending order .