MCPcopy Create free account
hub / github.com/cloudwan/gohan / sortProperties

Function sortProperties

cli/client/client_test_utils.go:427–429  ·  view source on GitHub ↗
(schema *schema.Schema)

Source from the content-addressed store, hash-verified

425func (p properties) Less(i, j int) bool { return p[i].ID < p[j].ID }
426
427func sortProperties(schema *schema.Schema) {
428 sort.Sort(properties(schema.Properties))
429}
430
431//ByName is alias type for handling gohanCommands
432type ByName []gohanCommand

Callers 1

compareSchemasFunction · 0.85

Calls 1

propertiesTypeAlias · 0.85

Tested by

no test coverage detected