compare
Compares two scope strings for ordering. First compares by package depth (more dots = higher priority), then by string length, then lexicographically.
Return
A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Parameters
o1
The first scope string.
o2
The second scope string.