Compare at the top
You will learn
Why balanced-ternary numbers compare at their first differing trit.
In balanced ternary the trits below place i add up to less than half of 3^i, so the highest differing trit decides any comparison. 41 is +---- and 39 is 0+++0: they differ in the top trit, so 41 is greater although its tiles show four minus signs. The spec's compare() reads that trit and is checked against plain less and greater on 714 pairs.