NewComparator returns a super.Value comparator for exprs. To compare values a and b, it iterates over the elements e of exprs, stopping when e(a)!=e(b).
(exprs ...SortExpr)
| 105 | // NewComparator returns a super.Value comparator for exprs. To compare values |
| 106 | // a and b, it iterates over the elements e of exprs, stopping when e(a)!=e(b). |
| 107 | func NewComparator(exprs ...SortExpr) *Comparator { |
| 108 | return &Comparator{slices.Clone(exprs)} |
| 109 | } |
| 110 | |
| 111 | // WithMissingAsNull returns the receiver after modifying it to treat missing |
| 112 | // values as the null value in comparisons. |