compare()
Compares this ObjectId with another and returns a number indicating their relative sort order.
other
: The ObjectId to compare withReturns:
-1
if this ObjectId sorts before the other0
if they are equal1
if this ObjectId sorts after the other