@Override
    public int compare(Node o1, Node o2) {
        if (o1.equals(o2)) {
            return 0;
        }

        int result = this.contextSetComparator.compare(o1.getContexts(), o2.getContexts());
        if (result != 0) {
            return result;
        }

        return this.nodeComparator.compare(o1, o2);
    }
Compares permission nodes based upon their supposed "priority".
common/src/main/java/me/lucko/luckperms/common/node/comparator/NodeWithContextComparator.java