private int booleanCompare(boolean b1, boolean b2) {
        int result = 0;
        if (b1 && !b2) {
            result = isDesc ? -1 : 1;
        } else if (b2 && !b1) {
            result = isDesc ? 1 : -1;
        }
        return result;
    }