compareTo
Orders OIDs by their DER encoding (bytes) using unsigned lexicographic byte comparison — i.e. the canonical "sorted by encoding" order (e.g. RFC 4514 §2.3 multi-valued RDN ordering). Consistent with equals: compareTo(other) == 0 iff equals(other).