MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Sort

Method Sort

xmlparser/attributes.go:136–138  ·  view source on GitHub ↗

Sort sorts the attributes according to the provided function.

(cmp func(i, j *Attribute) int)

Source from the content-addressed store, hash-verified

134
135// Sort sorts the attributes according to the provided function.
136func (a *Attributes) Sort(cmp func(i, j *Attribute) int) {
137 slices.SortFunc(a.s, cmp)
138}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected