MCPcopy Create free account
hub / github.com/apache/fory / getSortKeyText

Method getSortKeyText

go/fory/field_info.go:736–741  ·  view source on GitHub ↗

getSortKeyText returns the text key used when fields do not both use numeric tag IDs.

()

Source from the content-addressed store, hash-verified

734
735// getSortKeyText returns the text key used when fields do not both use numeric tag IDs.
736func (t triple) getSortKeyText() string {
737 if t.tagID >= 0 {
738 return strconv.Itoa(t.tagID)
739 }
740 return SnakeCase(t.name)
741}
742
743func lessTripleSortKey(a, b triple) bool {
744 if a.tagID >= 0 && b.tagID >= 0 && a.tagID != b.tagID {

Callers 1

lessTripleSortKeyFunction · 0.80

Calls 1

SnakeCaseFunction · 0.85

Tested by

no test coverage detected