@Override
    public int compareTo(TokenIntPair o) {
        if (this.value > o.value) {
            return -1;
        } else if (this.value < o.value) {
            return 1;
        }
        return this.token.compareTo(o.token);
    }
Descending by value, ascending by token

@param o other tokenlong pair
@return comparison
tika-eval/tika-eval-core/src/main/java/org/apache/tika/eval/core/tokens/TokenIntPair.java