blob: a40bcc89eaf23906bb9770560e005f711187a405 (
about) (
plain) (
blame)
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())
}
|