public static int normalise(final int compareResult) {
        if (compareResult < 0) {
            return -1;
        } else if (compareResult > 0) {
            return 1;
        } else {
            return compareResult;
        }
    }
Normalises an {@link Comparable#compareTo(Object)} result into -1, 0, or 1.
Useful for doing equality assertions on comparators.
stroom-util-shared/src/main/java/stroom/util/shared/CompareUtil.java