nullsMax reports whether s treats null as the maximum value.
()
| 25 | |
| 26 | // nullsMax reports whether s treats null as the maximum value. |
| 27 | func (s *SortExpr) nullsMax() bool { |
| 28 | return s.Order == order.Asc && s.Nulls == order.NullsLast || |
| 29 | s.Order == order.Desc && s.Nulls == order.NullsFirst |
| 30 | } |
| 31 | |
| 32 | func (c *Comparator) sortStableIndices(vals []super.Value) []uint32 { |
| 33 | if len(c.exprs) == 0 { |
no outgoing calls
no test coverage detected