Description

Compare should return an int indicating how this key relates to the provided key. -1 will indicate less than, 0 will indicate equality, and 1 will indicate greater than. Duplicate keys are allowed, but duplicate IDs are not.

Compare is referenced in 1 repository

github.com/Workiva/go-datastructures