MCPcopy Index your code
hub / github.com/expr-lang/expr / sortValues

Function sortValues

internal/spew/common.go:336–341  ·  view source on GitHub ↗

sortValues is a sort function that handles both native types and any type that can be converted to error or Stringer. Other inputs are sorted according to their Value.String() value to ensure display stability.

(values []reflect.Value, cs *ConfigState)

Source from the content-addressed store, hash-verified

334// can be converted to error or Stringer. Other inputs are sorted according to
335// their Value.String() value to ensure display stability.
336func sortValues(values []reflect.Value, cs *ConfigState) {
337 if len(values) == 0 {
338 return
339 }
340 sort.Sort(newValuesSorter(values, cs))
341}

Callers 3

formatMethod · 0.85
SortValuesFunction · 0.85
dumpMethod · 0.85

Calls 1

newValuesSorterFunction · 0.85

Tested by 1

SortValuesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…