MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / sort

Method sort

pkg/sql/sem/tree/datum.go:3177–3184  ·  view source on GitHub ↗
(ctx *EvalContext)

Source from the content-addressed store, hash-verified

3175}
3176
3177func (d *DTuple) sort(ctx *EvalContext) {
3178 if !d.sorted {
3179 sort.Slice(d.D, func(i, j int) bool {
3180 return d.D[i].Compare(ctx, d.D[j]) < 0
3181 })
3182 d.SetSorted()
3183 }
3184}
3185
3186func (d *DTuple) makeUnique(ctx *EvalContext) {
3187 n := 0

Callers 1

NormalizeMethod · 0.95

Calls 2

SetSortedMethod · 0.95
CompareMethod · 0.65

Tested by

no test coverage detected