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