1 2 3 4 5 6 7 8 9
package objectid import "bytes" // Compare lexicographically compares two object IDs by their canonical byte // representation. func Compare(left, right ObjectID) int { return bytes.Compare(left.RawBytes(), right.RawBytes()) }