MCPcopy Create free account
hub / github.com/MG-RAST/Shock / SortByteArray

Function SortByteArray

shock-server/node/util.go:32–37  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

30}
31
32func SortByteArray(b []byte) []byte {
33 sb := make([]byte, len(b))
34 copy(sb, b)
35 sort.Sort(sortBytes(sb))
36 return sb
37}

Callers 1

UpdateVersionMethod · 0.85

Calls 1

sortBytesTypeAlias · 0.85

Tested by

no test coverage detected